Création d’un panel Back Office

class my_module_with_bo_panel{
	
	public static function hooks(){
		if ( is_admin() ){
			add_action('admin_menu',array(__CLASS__,'add_settings_panels'));
		}
	}

	public static function add_settings_panels(){
		
		add_menu_page(
			__('Params'), 
			__('Params'), 
			'manage_options', 
			'my_settings_panel', 
			array(__CLASS__,'settings_panel')
		);

		add_submenu_page(
			'my_settings_panel',
			__('Params 1'), 
			__('Params 1'),
			'manage_options',
			'my_settings_panel',
			array(__CLASS__,'settings_panel_1')
		); 

		add_submenu_page(
			'my_settings_panel',
			__('Params 2'), 
			__('Params 2'),
			'manage_options',
			'my_settings_panel_2',
			array(__CLASS__,'settings_panel_2')
		); 
	}

	public static function settings_panel(){
	}
	
	public static function settings_panel_1(){
		?>
		<div class="wrap">
			<h2>Params 1</h2>
			<form method="post" action="<?php echo add_query_arg(array()) ?>"> 
				<?php //... ?>
				<?php submit_button() ?>
			</form>
		</div>
		<?php
	}

	public static function settings_panel_2(){
		?>
		<div class="wrap">
			<h2>Params 2</h2>
			<?php //... ?>
		</div>
		<?php 
	}
}

my_module_with_bo_panel::hooks();