Hello,
Thank you for contacting Rank Math today.
You can add the following code to your theme’s functions.php file to remove the Rank Math node from the admin bar:
/*
* Snippet for removing the Rank Math admin node
* from the WordPress admin bar
*
*/
function wps_admin_bar() {
global $wp_admin_bar;
$wp_admin_bar->remove_node('rank-math');
}
add_action( 'wp_before_admin_bar_render', 'wps_admin_bar' );
Looking forward to helping you. Thank you.
This action also disable the counter of visits from admin on dashboard site to not contaminate the analytics statistics ?
if is not, how can i reach this ?
-
This reply was modified 4 years, 8 months ago by Mario Barretta. Reason: adding refer to Google nalaytics
Hi Mario,
This only removes the Rank Math option from the admin bar – just like the user asked.
Everything else remains the same on your website. This has nothing to do with Google Analytics which will work the same way as it was working before.