-
Some of the filters are working but not the few that I need.
I am able to use….
add_action( ‘rank_math/head’, function() {
remove_all_actions( ‘rank_math/opengraph/facebook’ );
remove_all_actions( ‘rank_math/opengraph/twitter’ );
});
add_filter( ‘rank_math/opengraph/url’, function( $url ) {
return “my url”;
});I am unable to use any of these variations that I tried to update the og:title
add_filter( “rank_math/opengraph/facebook/og:title”, function( $content ) {
return ‘my title’;
});add_filter( “rank_math/opengraph/facebook/title”, function( $content ) {
return ‘my title’;
});add_filter( ‘rank_math/opengraph/title’, function( $content ) {
return “my title”;
});
The ticket ‘OpenGraph Filters are not working’ is closed to new replies.