Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remove CollectionPage Schema from Categories or Tags https://schema.press/docs/disable-collectionpage-categories-tags/
<?php //* do not include php tag
// Disable CollectionPage schema output on Categories
add_filter( 'schema_wp_output_category_enabled', '__return_false' );
// Disable CollectionPage schema output on Tags
add_filter( 'schema_wp_output_tag_enabled', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment