The meta description of profiles on the site contains user emails.

#563892
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    Could you please confirm if you wanted to remove/modify the default value of the meta description for your profile pages?

    If so, you can use and customize this filter on your site:

    add_filter( 'rank_math/frontend/description', function( $description ) {
    	$uri = $_SERVER['REQUEST_URI'];	
    	if(strpos($uri, 'profile/')){   
    		$description = 'My default description'; // Define the default description here
    	}
    	return $description;
    });
    

    Please add this code to your theme’s functions.php file. You may also refer to this article to further guide you in implementing the code: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps.

    Thank you.

    Anonymous
    Rank Math free

    Rinelle, Thank you very much for your help!

    Hello,
    
    You’re welcome.

    We are super happy that this issue is already resolved. If you have any other questions in the future, know that we are here to help you.
    
    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
    
    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 3 replies - 1 through 3 (of 3 total)

The ticket ‘The meta description of profiles on the site contains user emails.’ is closed to new replies.