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
| function sp_filter_content_content_analysis($seopress_get_the_content, $seopress_get_the_id) { | |
| return get_post_field('post_content', $seopress_get_the_id); | |
| } | |
| add_filter('seopress_content_analysis_content', 'sp_filter_content_content_analysis', 10, 2); |
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
| function sp_gtag_optimize_id() { | |
| return 'GTM-123456'; | |
| } | |
| add_filter('seopress_gtag_optimize_id', 'sp_gtag_optimize_id'); |
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
| function sp_auto_image_attr($img_attr_array) { | |
| $img_attr_array['post_title'] = "my image title"; | |
| $img_attr_array['post_excerpt'] = "my image caption"; | |
| $img_attr_array['post_content'] = "my image description"; | |
| return $img_attr_array; | |
| } | |
| add_filter('seopress_auto_image_attr', 'sp_auto_image_attr'); |
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
| define('SEOPRESS_WL_ICONS_HEADER', 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
| function sp_titles_article_published_time($html) { | |
| //you can add here all your conditions as if is_page(), is_category() etc.. | |
| $html = '<meta property="article:published_time" content="2019-05-06T19:18:27+00:00" />'; | |
| return $html; | |
| } | |
| add_filter('seopress_titles_article_published_time', 'sp_titles_article_published_time'); |
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
| function sp_titles_article_modified_time($html) { | |
| //you can add here all your conditions as if is_page(), is_category() etc.. | |
| $html = '<meta property="article:modified_time" content="2019-05-06T19:18:27+00:00" />'; | |
| return $html; | |
| } | |
| add_filter('seopress_titles_article_modified_time', 'sp_titles_article_modified_time'); |
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
| function sp_titles_og_updated_time($html) { | |
| //you can add here all your conditions as if is_page(), is_category() etc.. | |
| $html = '<meta property="og:updated_time" content="2019-05-06T19:18:27+00:00" />'; | |
| return $html; | |
| } | |
| add_filter('seopress_titles_og_updated_time', 'sp_titles_og_updated_time'); |
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
| function sp_deactivation() { | |
| //do something here | |
| return $something; | |
| } | |
| add_action('seopress_deactivation','sp_deactivation'); |
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
| function sp_activation() { | |
| //do something here | |
| return $something; | |
| } | |
| add_action('seopress_activation','sp_activation'); |
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
| function sp_sitemaps_index_cpt_query($args, $cpt_key) { | |
| //Default Query | |
| //$args = array('post_type' => $cpt_key, 'post_status' => 'publish', 'ignore_sticky_posts' => true, 'posts_per_page' => 1, 'meta_query' => array( array( 'key' => '_seopress_robots_index', 'value' => 'yes', 'compare' => 'NOT EXISTS' ) ), 'order' => 'DESC', 'orderby' => 'modified', 'lang' => ''); | |
| $args['orderby'] = 'date'; | |
| return $args; | |
| } | |
| add_filter('seopress_sitemaps_index_cpt_query', 'sp_sitemaps_index_cpt_query', 10, 2); |
OlderNewer