Forked from schemapress/schema-wp-add-new-type.php
Last active
April 21, 2018 16:44
-
-
Save thejimbirch/7be818b90aea5774d73b9ac7453816b2 to your computer and use it in GitHub Desktop.
Extend Schema.org Types options of the WordPress Schema plugin https://schema.press/docs/adding-support-new-schema-org-types/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php //* do not include php tag | |
add_filter( 'schema_wp_types', 'schema_wp_new_add_schema_type_claim_review' ); | |
/** | |
* Add ClaimReview to Schema Types options | |
* | |
* @since 1.0 | |
*/ | |
function schema_wp_new_add_schema_type_7623456( $options ) { | |
// Change 'NewType' to the actual schema.org type you want to add | |
// Example: Event, Product, JobPosting, ...etc. | |
$options['ClaimReview'] = array ( | |
'label' => __('Fact Check/ClaimReview'), | |
'value' => 'ClaimReview' | |
); | |
return $options; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment