er_enable_jquery_body', '__return_false' ); } } /** * Excludes Divi's CSS files from CSS combination * * @since 3.10.1 * * @param array $exclude_css An array of CSS to be excluded. * * @return array the updated array of paths */ public function exclude_css_from_combine( $exclude_css ) { if ( ! (bool) $this->options->get( 'minify_concatenate_css', 0 ) ) { return $exclude_css; } $wp_content = wp_parse_url( content_url( '/' ), PHP_URL_PATH ); if ( $wp_content ) { $exclude_css[] = $wp_content . 'et-cache/(.*).css'; } return $exclude_css; } /** * Disable Divi dynamic CSS when RUCSS is activated * * @return void */ public function disable_dynamic_css_on_rucss() { if ( ! $this->options->get( 'remove_unused_css', false ) ) { return; } add_filter( 'et_use_dynamic_css', '__return_false' ); } /** * Remove dynamic late assets action. * * @return void */ public function remove_assets_generated() { remove_all_actions( 'et_dynamic_late_assets_generated' ); } }