Hi Joseph,
For pages and posts Editor screen we have an checkbox to disable the Schema output in the metabox options for the plugin.
Otherwise, for broader cases, there is a wordpress filter ‘hunch_schema_markup’ you can use from PHP. You would add the filter for your certain page types or as needed for your scenario.
// Our filter callback function
function example_callback( $schemaJson, $postType ) {
// (maybe) modify $schemaJson
return $schemaJson;
}
add_filter( ‘hunch_schema_markup’, ‘example_callback’, 10, 3 );
Let me know if you have any questions.
Thanks,
Mark
I don’t understand, if i add this exact code on the categories pages schema app markup will disappear? Or i have to modify something in this code?
If you add the exact code nothing will change. You need to customize the PHP function to suit your needs; do you want to filter out a post type or based on contents of the schema data? You would have to define the filtering criteria and implement with PHP there. In those situations you would modify the PHP code “// (maybe) modify $schemaJson” to override the $schemajson object if the criteria is met.
I’ve updated our documentation, the FAQ page with this information. At this time you can use the filter to override the markup for groups of pages.