/** * remove inline styles and noscript styles (в header удалить лишнее) */ add_action( 'wp_print_styles', function(){ wp_style_add_data( 'woocommerce-inline', 'after', '' ); }); add_action( 'init', 'remove_custom_action' ); function remove_custom_action(){ remove_action( 'wp_head', 'wc_gallery_noscript' ); }