/** * Remove from admin top bar */ function wps_admin_bar() { global $wp_admin_bar; $wp_admin_bar->remove_node('rank-math'); $wp_admin_bar->remove_node('wp-rocket'); } add_action( 'wp_before_admin_bar_render', 'wps_admin_bar' );
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter