Last active
May 19, 2022 09:26
-
-
Save wp-seopress/6e9957965dfdc1b494233bcc9de65cef to your computer and use it in GitHub Desktop.
Filter home URL for Google Inspect URL API
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'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment