-
please see ticket# #735630
I’m not sure what happened, but its back. i’m getting a bunch of Rank Math SEO stuff (twitter, facebook) in my user profiles.my Author SEO was actually set to DISABLED, so I ENABLED it and then switched the toggle as you recommended. i’ve cleared the server cache, but it remains
Thank you for your help. we truly appreciate it.
none of this code works either. your ChatGPT bot was not able to resolve this ticket last time.
/**
* Filter to remove Rank Math from user profiles
*/
add_filter( ‘rank_math/user_profile/hide’, ‘__return_true’ );add_filter( ‘user_contactmethods’, function( $contact_methods ) {
if ( isset( $contact_methods[‘twitter’] ) ) {
unset( $contact_methods[‘twitter’] );
}if ( isset( $contact_methods[‘facebook’] ) ) {
unset( $contact_methods[‘facebook’] );
}if ( isset( $contact_methods[‘additional_profile_urls’] ) ) {
unset( $contact_methods[‘additional_profile_urls’] );
}return $contact_methods;
}, 11 );
The ticket ‘remove RankMath from User profiles section’ is closed to new replies.