Hello @razorfrog,
Thank you very much for the feedback/suggestion.
While we believe the WP Simple Pay entry in the admin toolbar provides valuable information about the status of the plugin, as well as quick access to plugin features, I can certainly understand wanting to curate what is displayed.
For the time being the CSS you have provided is a reasonable solution to hide the toolbar item and we will explore adding a plugin setting to more easily control the addition of the toolbar item.
And if every plugin added a link to the Admin Bar? It would quickly run out of room. Please make it an option to enable/disable like Gravity Forms, for example.
@razorfrog a very valid point. Another way to remove the admin bar item before we add the functionality directly in the plugin is to add the following custom plugin to your website:
/**
* Plugin Name: WP Simple Pay - Remove Admin Toolbar Item
*/
add_action(
'admin_bar_menu',
function( $wp_admin_bar ) {
$wp_admin_bar->remove_node( 'simpay-admin-bar-test-mode' );
},
1000
);
https://www.wpbeginner.com/beginners-guide/beginners-guide-to-pasting-snippets-from-the-web-into-wordpress/