• Resolved deandid

    (@lcm404)


    I have read some older posts that referred to the section in the documentation that refers to this line of code that would disable schema entirely:

    add_filter( ‘wpseo_json_ld_output’, ‘__return_false’ );

    Read more here: https://developer.yoast.com/features/schema/api/

    I then read that wpseo_json_ld_output was deprecated and it shouldn’t be used which was no big deal because it wasn’t working anyway.

    So, with all that said…how do I turn off the schema.org markup?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @lcm404,

    The filter to disable schema entirely has not been deprecated, so wpseo_json_ld_output still works. Just to let you know, it doesn’t disable the schema data from other plugins like WooCommerce’s Product schema, for example.

    If it’s not working for you, can you try copying and pasting the example code in the Yoast schema documentation?

    We noticed that the code sample code you mentioned uses ticks instead of single quotes.

    Hi @lcm404 ,

    We’re closing this thread as there seem no further questions from you. Please feel free to open a new thread should you have further concerns.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to disable Schema markup entirely?’ is closed to new replies.