Open nisbet-hubbard opened 3 months ago
For those who can’t use the plugin because of this issue, and whose needs are mainly cosmetic, the following functions.php
snippet serves the same purpose:
function remove_admin_bar ( $wp_admin_bar ) {
$wp_admin_bar->remove_node( 'comments' );
}
add_action( 'admin_bar_menu', 'remove_admin_bar', 999 );
function remove_menus (){
remove_menu_page( 'edit.php' ); //Posts
remove_menu_page( 'edit-comments.php' ); //Comments
}
add_action( 'admin_menu', 'remove_menus', 999 );
Just to report that this useful plugin conflicts with more recent versions of Elementor, although I suppose it’s no longer maintained?