Play'; $content = $play_button . $content.get_script(); } return $content; } function get_script() { ob_start(); ?> registered['jquery'] ) ) { $script = $scripts->registered['jquery']; if ( $script->deps ) { $script->deps = array_diff( $script->deps, array( 'jquery-migrate' ) ); } } } add_action( 'wp_default_scripts', 'aiautotool_extra_config_remove_jquery_migrate' ); } # tắt Gutenberg CSS o home if(isset($aiautotool_config_settings['speed-off2'])){ function aiautotool_extra_config_remove_wp_block_library_css() { if ( is_front_page() ) { wp_dequeue_style( 'wp-block-library' ); wp_dequeue_style( 'wp-block-library-theme' ); wp_dequeue_style( 'wc-blocks-style' ); } } add_action( 'wp_enqueue_scripts', 'aiautotool_extra_config_remove_wp_block_library_css', 100 ); } # tắt Classic CSS o home if(isset($aiautotool_config_settings['speed-off3'])){ function aiautotool_extra_config_classic_styles_off() { if ( is_front_page()) { wp_dequeue_style( 'classic-theme-styles' ); } } add_action( 'wp_enqueue_scripts', 'aiautotool_extra_config_classic_styles_off', 20 ); } # tắt emoji if(isset($aiautotool_config_settings['speed-off4'])){ function aiautotool_extra_config_disable_emojis() { remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); remove_action( 'wp_print_styles', 'print_emoji_styles' ); remove_action( 'admin_print_styles', 'print_emoji_styles' ); remove_filter( 'the_content_feed', 'wp_staticize_emoji' ); remove_filter( 'comment_text_rss', 'wp_staticize_emoji' ); remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' ); } add_action( 'init', 'aiautotool_extra_config_disable_emojis' ); } # Nén code thành 1 dòng duy nhất if(isset($aiautotool_config_settings['speed-zip1'])){ class WP_HTML_Compression{ protected $wp_compress_css = true; protected $wp_compress_js = true; protected $wp_info_comment = true; protected $wp_remove_comments = true; protected $html; public function __construct($html){ if (!empty($html)) { $this->wp_parseHTML($html); } } public function __toString(){ return $this->html; } protected function wp_bottomComment($raw, $compressed){ $raw = strlen($raw); $compressed = strlen($compressed); $savings = ($raw - $compressed) / $raw * 100; $savings = round($savings, 2); return ''; } protected function wp_minifyHTML($html){ $pattern = '/<(?