Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thank you for your recommendation, I really appreciate it.
    Here is the updated code that includes the Image Prioritizer plugin and the new Web Worker Offloading:

    add_action( 'init', static function() {
    	remove_action( 'wp_head', 'perflab_render_generator' );
    	remove_action( 'wp_head', 'image_prioritizer_render_generator_meta_tag' );
    	remove_action( 'wp_head', 'plsr_render_generator_meta_tag' );
    	remove_action( 'wp_head', 'auto_sizes_render_generator' );
    	remove_action( 'wp_head', 'dominant_color_render_generator' );
    	remove_action( 'wp_head', 'embed_optimizer_render_generator' );
    	remove_action( 'wp_head', 'webp_uploads_render_generator' );
    	remove_action( 'wp_head', 'od_render_generator_meta_tag' );
    	remove_action( 'wp_head', 'plwwo_render_generator_meta_tag' );
    	add_action( 'od_init', static function() {
    		remove_action( 'wp_head', 'image_prioritizer_render_generator_meta_tag' );
    	} );
    	if ( class_exists( 'Performant_Translations' ) ) {
    		remove_action( 'wp_head', [ Performant_Translations::class, 'add_generator_tag' ] );
    	}
    }, 15 );

    Or complete solution for all additional modules:

    add_action('init', static function() {
    remove_action( 'wp_head', 'perflab_render_generator' );
    remove_action( 'wp_head', 'image_prioritizer_render_generator_meta_tag' );
    remove_action( 'wp_head', 'plsr_render_generator_meta_tag' );
    remove_action( 'wp_head', 'auto_sizes_render_generator' );
    remove_action( 'wp_head', 'dominant_color_render_generator' );
    remove_action( 'wp_head', 'embed_optimizer_render_generator' );
    remove_action( 'wp_head', 'webp_uploads_render_generator' );
    remove_action( 'wp_head', 'od_render_generator_meta_tag' );
    if ( class_exists( 'Performant_Translations' ) ) {
    remove_action( 'wp_head', [ Performant_Translations::class, 'add_generator_tag' ] );
    }
    }, 15);
    • This reply was modified 6 months, 2 weeks ago by davidulus.

    Hi, you can try this (works for me):

    add_action( 'init', static function() {
    remove_action( 'wp_head', 'perflab_render_generator' );
    } );
    • This reply was modified 6 months, 2 weeks ago by davidulus.
    • This reply was modified 6 months, 2 weeks ago by davidulus.
    • This reply was modified 6 months, 2 weeks ago by davidulus.
Viewing 3 replies - 1 through 3 (of 3 total)