- Add an Extra Field for a Schema Type
- Enable/Disable Schema Markup
- Add Ratings Using Shortcode
- Disable a Specific Schema Markup
- Add Schema Markup on Subcategories
- Disable the White Label Settings
- Disable Corporate Contact Schema
- Remove Home List Item from Breadcrumblist Schema
- Remove Shop Item Link on Product Page
- Test a Schema Snippet
- Mapping Your Schema Fields
- Add an Extra Field for a Schema Type
- How to Use the Schema Pro plugin?
- All-in-one Schema Pro plugin
- Map Required fields with Custom Fields
- Create a Custom Fields
- Target Specific Areas of the Website
- Enable/Disable Schema Markup
- Add Ratings Using Shortcode
- How to Add a Schema markup for an Article on your website?
- Difference Between the Free and Pro Plugin?
- How to map fields with custom fields from third party plugins?
- Accept User Ratings from Users
- Update Schema Pro
- Register Your Copy of Schema Pro
- Organization Type in the Setup Wizard
- Schema Pro Setup Wizard
- Getting Started With Schema Pro
- How To Install Schema Pro Plugin
- Schema Markup for an Event page
- Schema Markup for a Review page
- Schema Markup for a Local Business Page
- Schema Markup for a Service Page
- Schema Markup for a Product Page
- Schema Markup for a Course page
- Schema Markup for a Recipe Page
- Schema Markup for a Person/ About Page
- Schema Markup for a Job Posting Page
- Schema Markup for a Video Object
Disable a Specific Schema Markup
In Schema Pro version 1.1.4 following filters are introduced which will help you to disable specific schema from page/post using schema name or post ID.
wp_schema_pro_schema_enabled
wp_schema_pro_global_schema_enabled
Below is the detailed description for above filters –
1. wp_schema_pro_schema_enabled
With this filter, you will be able to remove specific schema from page/post.
You can use the following schema types.
article, book, course, local-business, review, person, product, recipe, service, software-application, video-object
You can remove more than one schema with adding OR(||) condition.
Example: Below is the example code. You can try adding the following code to your theme’s functions.php file.
function my_function( $bool, $post_id, $type ) {
if( 'job-posting' == $type || 'event' == $type ){
return false;
} else {
return true;
}
}
add_filter( 'wp_schema_pro_schema_enabled', 'my_function', 20, 3 );
2. wp_schema_pro_global_schema_enabled
With this filter, you will be able to remove specific global schema from page/post.
You can use the following schema types.
breadcrumb, site-navigation-element, organisation, about-page, contact-page, sitelink-search-box, person
You can remove more than one schema with adding OR(||) condition.
Example: Below is the example code. You can try adding the following code to your theme’s functions.php file.
function wp_my_function( $bool, $post_id, $type ) {
if( 'site-navigation-element' == $type || 'breadcrumb' == $type ){
return false;
} else {
return true;
}
}
add_filter( 'wp_schema_pro_global_schema_enabled', 'wp_my_function', 20, 3 );
We don't respond to the article feedback, we use it to improve our support content.