File Editor
Directories:
.. (Back)
scripts
styles
Files:
advanced-custom-fields-pro.php
advanced-custom-fields.php
amazon-s3-and-cloudfront-pro.php
amazon-s3-and-cloudfront.php
autoptimize.php
caldera-forms.php
cartflows.php
cdn-enabler.php
coursepress.php
divi-filterable-blog-module.php
divi-module-code-snippet.php
divi-testimonial-slider.php
divi_layout_injector.php
divi_woo_layout_injector.php
dk-pdf.php
ds-divi-rocket.php
easy-digital-downloads.php
eventon.php
events-manager.php
final-tiles-grid-gallery-lite.php
gravityforms.php
gravityformssignature.php
ht-knowledge-base.php
imagify.php
insert-pages.php
jucra-acf-google-maps-for-divi.php
kvcore-idx.php
landing-pages.php
m-chart.php
mappress-google-maps-for-wordpress.php
megamenu.php
modern-events-calendar-lite.php
nex-forms-express-wp-form-builder.php
paid-memberships-pro.php
photo-gallery.php
pilotpress.php
popup-maker.php
relevanssi-premium.php
relevanssi.php
sellsy.php
seo-by-rank-math.php
sfwd-lms.php
sg-cachepress.php
siteorigin-panels.php
sitepress-multilingual-cms.php
table-of-contents-plus.php
the-events-calendar-community-events.php
the-events-calendar.php
toolbar-publish-button.php
woo-paypalplus.php
woocommerce.php
wordpress-mu-domain-mapping.php
wordpress-seo.php
wp-job-manager.php
wp-responsive-table.php
wp-rocket.php
wp-smush-pro.php
wp-smushit.php
wp-views.php
wp3d-models.php
wpml-sticky-links.php
yith-woocommerce-dynamic-pricing-and-discounts-premium.php
Create New File
Create
Edit File: wp-rocket.php
<?php // phpcs:ignore WordPress.Files.FileName -- We don't follow WP filename format. if ( ! defined( 'ABSPATH' ) ) { // Exit if accessed directly. exit; } /** * ET_Builder_Plugin_Compat_WP_Rocket class file. * * @class ET_Builder_Plugin_Compat_WP_Rocket * @package Divi * @subpackage Builder * @since 4.14.5 * @link https://wp-rocket.me/ */ class ET_Builder_Plugin_Compat_WP_Rocket extends ET_Builder_Plugin_Compat_Base { /** * Constructor. * * @since 4.14.5 */ public function __construct() { $this->plugin_id = 'wp-rocket/wp-rocket.php'; $this->init_hooks(); } /** * Hook methods to WordPress. * * @since 4.14.5 * * @return void */ public function init_hooks() { // Bail if there's no version found. if ( ! $this->get_plugin_version() ) { return; } add_filter( 'rocket_rucss_safelist', array( $this, 'et_rocket_css_safelist' ), 10, 1 ); } /** * CSS safelist to exclude from WP Rocket's 'Unused CSS' option. * The array may contain CSS filenames, IDs or classes. * * @since 4.14.5 * * @param array[] $css_safelist list of CSS filenames, IDs or classes. * * @return array[] */ public function et_rocket_css_safelist( $css_safelist ) { $et_css_safelist = array( '.et_pb_blog_grid', ); return array_merge( $css_safelist, $et_css_safelist ); } } new ET_Builder_Plugin_Compat_WP_Rocket();
Save Changes
Rename File
Rename