Fix SEOPress if you have Domain Level Entry in Google Search Console.
SEOPress works out of the box is Google Search Console entry is a URL based entry (eg. www.domain .com format) but if the entry is based on sc-domain only - you will need a small patch to make SEOPress work properly.
<?php
//In case you use a property domain with Google Search console
function sp_search_console_base_url($site_url)
{
//default: site_url();
return "sc-domain:ruhanirabin.com";
}
add_filter("seopress_search_console_base_url", "sp_search_console_base_url");
//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:ruhanirabin.com";
}
add_filter("seopress_inspect_url_home_url", "sp_inspect_url_home_url");
