Ẩn plugin wordpress

function arrowtran_admin_menus() {
remove_menu_page( ‘themes.php’ );
remove_menu_page( ‘plugins.php’ );
remove_menu_page( ‘tools.php’ );
remove_menu_page( ‘options-general.php’ );
remove_menu_page( ‘wpcf7’ );
remove_menu_page( ‘wpseo_dashboard’ );
}
add_action( ‘admin_menu’, ‘arrowtran_admin_menus’ );

Leave a Reply

Your email address will not be published.