No results found. Try again with different words?
Search must be at least 3 characters.
- How to Add an Extra Field for a Particular Schema Type in Schema Pro?
- How to enable/disable schema markup from post/page?
- How to Add Ratings using Shortcode in Schema Pro?
- How to disable a specific schema markup from post/page?
- How to Add Schema Markup on Subcategories
- How to Disable the White Label Settings Permanently?
- How to Disable Corporate Contact Schema?
- How to Remove Home List Item from Breadcrumblist Schema?
- How to Remove Shop Item Link from BreadcrumbList Schema on Product Page?
- How to Test a Schema Snippet?
- Mapping Your Schema Fields in Schema Pro
- How to Add an Extra Field for a Particular Schema Type in Schema Pro?
- How to Use the Schema Pro plugin?
- What is the All-in-one Schema Pro plugin?
- How to map required fields with Custom Fields?
- How to create a Custom Fields using Schema Pro?
- How to target specific areas of the website?
- How to enable/disable schema markup from post/page?
- How to Add Ratings using Shortcode in Schema Pro?
- How to Add a Schema markup for an Article on your website?
- What is the Difference between the Free and Pro Plugin?
- How to map fields with custom fields from third party plugins?
- How to Accept User Ratings from Users in Schema Pro?
- How to Update Schema Pro?
- How to Register Your Copy of Schema Pro? (License Registration)
- Selecting Organization Type in the Setup Wizard
- Schema Pro Setup Wizard
- Getting Started with Schema Pro
- How To Install Schema Pro Plugin
- How to Add a Schema markup for an Event page?
- How to Add a Schema markup for a Review page?
- How to Add a Schema markup for a Local Business Page?
- How to Add a Schema markup for a Service Page?
- How to Add a Schema markup for a Product page?
- How to Add a Schema markup for a Course page?
- How to Add a Schema markup for a Recipe page?
- How to Add a Schema markup for a Person or About Page?
- How to Add a Schema markup for a Job Posting page?
- How to Add a Schema markup for a Video Object?
How to disable a specific schema markup from post/page?
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.