-
I trying this code to disable canonical url in my custom pages but it’s not working
add_filter( 'rank_math/frontend/canonical', function( $canonical ) {
$canonical = false;
return $canonical;
}, 9999);These codes are working fine but the above code isn’t.
add_filter( 'rank_math/opengraph/url', function( $url ) {
$url = false;
return $url;
});
add_filter( 'rank_math/frontend/remove_credit_notice', '__return_true' );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The ticket ‘Unable to remove canonical url’ is closed to new replies.