This file contains hidden or 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('the_content','my_schema_wp_markup_output_in_content_6876867'); | |
/** | |
* Add schema.org markup generated by Schema plugin to the content | |
* | |
* return string | |
*/ | |
function my_schema_wp_markup_output_in_content_6876867( $content ) { | |
This file contains hidden or 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_output', 'schema_wp_override_description_yoast_seo_5636346455' ); | |
add_filter( 'schema_about_page_output', 'schema_wp_override_description_yoast_seo_5636346455' ); | |
add_filter( 'schema_contact_page_output', 'schema_wp_override_description_yoast_seo_5636346455' ); | |
/* | |
* Pull Schema Title and Description values from Yoast SEO | |
*/ | |
function schema_wp_override_description_yoast_seo_5636346455( $schema_output ) { | |
This file contains hidden or 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 | |
// 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' ); | |
This file contains hidden or 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_filter_headline', 'truncating_headlines_words_567545256'); | |
/** | |
* Schema Plugin: Truncating Headlines by words count | |
* | |
* @since 1.0 | |
*/ | |
function truncating_headlines_words_567545256( $headline ) { | |
This file contains hidden or 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_filter_headline', 'truncating_headlines_chars_567545256'); | |
/** | |
* Schema Plugin: Truncating Headlines by characters count | |
* | |
* @since 1.0 | |
*/ | |
function truncating_headlines_chars_567545256( $headline ) { | |
This file contains hidden or 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_blog_output', 'schema_blog_output_remove_8987716235' ); | |
/** | |
* Remove Schema Plugin markup for Blog on home page | |
* | |
* @param array $schema | |
* @return array | |
*/ | |
function schema_blog_output_remove_8987716235( $schema ) { |
This file contains hidden or 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_output', 'remove_datePublished_markup_588545256'); | |
/** | |
* Schema Plugin: Remove datePublished markup on BlogPosting | |
* | |
* @since 1.0 | |
*/ | |
function remove_datePublished_markup_588545256( $schema ) { | |