This code snippet fixes a slug formatting issue within a MyListing website, as described below.
For example, let’s say your Listing Type name is “Service Providers”. When using SEOPress (and perhaps other SEO plugins), the slug would appear as “service–providers”, rather than “service-providers”.
add_filter("seopress_social_og_title", function ($seopress_social_og_title) {
return str_replace("-", " ", $seopress_social_og_title);
});
add_filter("seopress_titles_title", function ($seopress_titles_title_template) {
return str_replace("-", " ", $seopress_titles_title_template);
});