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_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 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 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_7623456' ); | |
/** | |
* Add New type to Schema Types options | |
* | |
* @since 1.0 | |
*/ | |
function schema_wp_new_add_schema_type_7623456( $options ) { | |
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_output', 'schema_wp_override_description_yoast_seo_12345' ); | |
/* | |
* Override Schema description value with Yoast SEO description | |
*/ | |
function schema_wp_override_description_yoast_seo_12345( $schema_output ) { | |
// get description value from Yoast SEO post meta | |
$desc = get_post_meta( get_the_ID(), '_yoast_wpseo_metadesc', true); |
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_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 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 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 ) { | |