Hello Guest! Welcome to my website.

You can benefit from our privileges as a member of our site.

or Register

how to create admin page (theme option ) in wordpress admin panal

alex

New member
Joined
Oct 26, 2021
Messages
17
Reaction score
0
Points
1
PHP:
add_action( 'admin_menu', 'register_my_custom_menu_page' );
function register_my_custom_menu_page() {
  // add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $position );
  add_menu_page( 'all users', 'All users', 'manage_options', 'allusers', 'new_custom_page', 'dashicons-welcome-widgets-menus', 90 );
add_submenu_page( 'allusers', 'new users', 'my new users', 'manage_options', 'subpageslg', 'nwcususer' );
}
 
Top