RankMath Prevents me from Removing User Profile Contact Methods

#80885
  • Resolved Joe Fletcher
    Rank Math business

    I add this code straight from the WordPress codex:

    
    function modify_user_contact_methods( $user_contact ) {
    
    	// Remove user contact methods
    	unset( $user_contact['facebook']    );
    	unset( $user_contact['twitter'] );
    
    	return $user_contact;
    }
    add_filter( 'user_contactmethods', 'modify_user_contact_methods' );
    

    It works when I disable RankMath. Does not work when I enable RankMath.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Alberto
    Rank Math business

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
    ​​​​​​​
    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Joe Fletcher
    Rank Math business

    Unfortunately I’m unable to allow you to log into my website.

    I suggest trying this on a fresh WordPress install with just RankMath and that code, possibly in the Code Snippets plugin like I use.

    If you’re unable to reproduce, then great. If you can reproduce, then you have what you need to troubleshoot.

    Alberto
    Rank Math business

    Hello,

    I have tested it in a clean installation with the latest WordPress version and latest Rank Math version, using the Twenty Twenty theme and only Rank Math enabled and as you can see in the following screencast, everything works fine:

    https://i.rankmath.com/TC4Jch

    Looking forward to help you.

    Joe Fletcher
    Rank Math business

    Ah, nice video – thanks so much for screencasting that. That was cool.

    Ok, I’ll figure it out.

    Michael Davis
    Rank Math pro

    Hello,

    We are glad it was helpful.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘RankMath Prevents me from Removing User Profile Contact Methods’ is closed to new replies.