Exclude Schema Markup by Post Type

You can exclude Schema JSON-LD markup from specific post types by using the following filter.

See the $mod variable documentation for more information on the $mod array and its elements.