😅How to add menu in WordPress admin panel (ok)
https://developer.wordpress.org/reference/functions/add_menu_page/

/**
* Add a new admin bar menu item.
*
* @param WP_Admin_Bar $admin_bar Admin bar reference.
*/
function my_plugin_add_admin_bar_items( $admin_bar ) {
// Run admin bar code here. Will run on both frontend and backend.
$admin_bar->add_menu(
array(
'id' => 'my-plugin-menu',
'title' => __('Review Page','kadence-child'),
'href' => site_url('wp-admin/profile.php'),
'meta' => array(
'class' => 'my-plugin-class',
'title' => 'Review Page',
),
)
);
}
add_action( 'admin_bar_menu', 'my_plugin_add_admin_bar_items', 50 );
PreviousHow to Customize the WordPress Admin Dashboard Without a Plugin (ok)Nexthow to add categories and tags on pages?
Last updated
Was this helpful?