• Kills most but not all structured data. Description by Yoast still exists, duplicating that line by my preferred SEO replacement. Really appreciate this though.

Viewing 1 replies (of 1 total)
  • Plugin Author Roy Orbitson

    (@lev0)

    Are you referring to <meta>s? Yoast only provides one hook to filter ld+json scripts, which all this plugin was ever meant to do.

    I have added extra filtering for the new Gutenberg editor, want to try it out to see if it suppresses the extra scripts? Add this to the end of the current plugin’s php:

    add_action(
        'plugins_loaded'
        , function() {
            if (!function_exists('register_block_type')) {
                return;
            }
            $block_registry = WP_Block_Type_Registry::get_instance();
            $yoast_blocks = array(
                'yoast/faq-block',
                'yoast/how-to-block',
            );
            foreach ($yoast_blocks as $yoast_block) {
                $yoast_block = $block_registry->get_registered($yoast_block);
                if ($yoast_block && is_array($yoast_block->render_callback)) {
                    $yoast_block->render_callback = function($attributes, $content) {
                        return $content;
                    };
                }
            }
        }
        , 15 # after wpseo_init
    );
Viewing 1 replies (of 1 total)
  • The topic ‘Fine, but not comprehensive’ is closed to new replies.