Return to Snippet

Revision: 75198
at February 19, 2019 20:43 by cerxx


Initial Code
function wpschool_remove_yoast_jsonld( $data ){
    $data = array();
    return $data;
}
add_filter( 'wpseo_json_ld_output', 'wpschool_remove_yoast_jsonld', 10, 1 );

Initial URL
https://en-au.wordpress.org/plugins/disable-yoast-ld-json/

Initial Description
JSON-LD is one of the micromarking schemes. If you use the SEO plugin Yoast SEO on your website, then it defaults to a JSON-LD scheme for the entire website that cannot be changed. In order for the site owner to be able to use any other microdata, this must be disabled. Any settings in the admin panel plug-in Yoast SEO for this does not provide.
This method involves editing the functions.php file of your active WordPress theme:

Initial Title
How to remove application/ld + json YOAST  SEO plugin in wordpress

Initial Tags
wordpress

Initial Language
PHP