View remove-inline-css-of-the-local-business-block-block-editor.php
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
add_action( 'wp_enqueue_scripts', 'sp_remove_local_business_block_styles' ); | |
function sp_remove_local_business_block_styles() { | |
wp_dequeue_style( 'wpseopress-local-business-style' ); | |
} |
View filter-list-of-taxonomies-from-xml-sitemap-options.php
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
function sp_sitemaps_tax($taxonomies) { | |
//remove a custom taxonomy | |
unset($taxonomies['my_custom_taxonomy']); | |
return $taxonomies; | |
} | |
add_filter('seopress_sitemaps_tax', 'sp_sitemaps_tax'); |
View filter-list-of-post-types-from-xml-sitemap-options.php
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
function sp_sitemaps_cpt($post_types) { | |
//add a post type | |
$post_types['my_cpt_key'] = (object)[ | |
'name' => 'my_cpt_name', | |
'labels' => (object)[ | |
'name' => 'my_cpt_name' | |
], | |
]; | |
//remove a post type |
View filter-home-url-for-google-inspect-url-api.php
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
//In case you use a property domain with Google Search console | |
function sp_inspect_url_home_url($home_url) { | |
//default: get_home_url(); | |
return 'sc-domain:example.com'; | |
} | |
add_filter('seopress_inspect_url_home_url', 'sp_inspect_url_home_url'); |
View filter-url-to-inspect-with-google-inspect-url-api.php
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
function sp_inspect_url_permalink($url) { | |
//default: get_permalink(); | |
return $url; | |
} | |
add_filter('seopress_inspect_url_permalink', 'sp_inspect_url_permalink'); |
View filter-xsl-video-sitemap.php
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
add_filter('seopress_sitemaps_video_xsl', 'sp_sitemaps_video_xsl'); | |
function sp_sitemaps_video_xsl($xsl) | |
{ | |
//var_dump($xsl); | |
//do your stuff | |
return $xsl; | |
} |
View filter-the-css-of-email-notifications.php
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
add_filter('seopress_insights_email_alert_css', 'sp_insights_email_alert_css'); | |
function sp_insights_email_alert_css($css) { | |
$css = '<style>#wrapper {background: red}</style>'; | |
return $css; | |
} |
View filter-the-description-of-email-notifications.php
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
add_filter('seopress_insights_email_alert_desc', 'sp_insights_email_alert_desc'); | |
function sp_insights_email_alert_desc($desc) { | |
$desc = __('My custom description','text-domain'); | |
return $desc; | |
} |
NewerOlder