Disable Schema markup

Need help with this?
Purchase All in One SEO Pack Pro to get dedicated support from us.

Buy Now

All in One SEO Pack outputs Schema markup on all posts, pages, categories, tags and search results  when Use Schema.org Markup is enabled.  You can remove this markup for specific post types, taxonomies, etc by using the filter below:

add_filter( 'aioseop_disable_schema', 'disable_aioseop_schema' );

function disable_aioseop_schema() {
     if ( is_category() ) {  // Targets all categories
          return true;
     }
}

Filter added in All in One SEO Pack v3.3.

For instructions on how to use this code, please refer to our FAQ here.

  • Was this helpful ?
  • YesNo