Title: Replacing Schema structured data
Last modified: March 4, 2025

---

# Replacing Schema structured data

 *  Resolved [comodern](https://wordpress.org/support/users/comodern/)
 * (@comodern)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/replacing-schema-structured-data/)
 * We use the Yoast plugin for wordpress. We’d like to replace the auto-generated
   schema structured data on our top 20 pages with our own custom tailored structured
   data. How can we completely replace the schema structured data that Yoast generates
   on an individual post?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/replacing-schema-structured-data/#post-18342090)
 * Hello [@comodern](https://wordpress.org/support/users/comodern/)
 * Thanks for reaching out. If you return false or an empty array on the `wpseo_json_ld_output`
   filter, you disable all Yoast SEO’s schema output.
 *     ```wp-block-code
       add_filter( 'wpseo_json_ld_output', '__return_false' );
       ```
   
 *  Thread Starter [comodern](https://wordpress.org/support/users/comodern/)
 * (@comodern)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/replacing-schema-structured-data/#post-18342109)
 * Thanks. Where on the post do I insert this line?
 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/replacing-schema-structured-data/#post-18342147)
 * Typically, code snippets are added to your theme’s functions.php file. If you’re
   unfamiliar with using code snippets, we’d like to refer you to the WordPress 
   documentation on [how to use a filter](https://developer.wordpress.org/plugins/hooks/filters/#add-filter).
 *  Thread Starter [comodern](https://wordpress.org/support/users/comodern/)
 * (@comodern)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/replacing-schema-structured-data/#post-18342150)
 * We only want to replace the structured data on specific posts, not all posts.
   Is that possible?
 *  [Mushrit Shabnam](https://wordpress.org/support/users/611shabnam/)
 * (@611shabnam)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/replacing-schema-structured-data/#post-18349612)
 * Hi [@comodern](https://wordpress.org/support/users/comodern/)
 * You have to add proper customization to replace the structured data on specific
   posts. As mentioned before, you can use the filter ‘wpseo_json_ld_output’ and
   write a function as required.
 * We recommend creating regular backups of your site and database for your site’s
   health and safety. A backup is crucial before making important changes on your
   website and provides you with a safety net if something were to go wrong. Learn
   more about the [benefits of regular backups](https://yoast.com/help/how-to-backup-your-wordpress-site/).

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Replacing Schema structured data’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Mushrit Shabnam](https://wordpress.org/support/users/611shabnam/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/replacing-schema-structured-data/#post-18349612)
 * Status: resolved