s'il vous plait pourriez v me dire comment insérer un botton ou plutot un menu dans le dashboard wordpress
Salut JMOUD, utilises **add_menu_page** et **add_submenu_page** dans ton **functions.php**<?php add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $position ); ?> Voici les positions (le dernière arguments): 2 Dashboard 4 Separator 5 Posts 10 Media 15 Links 20 Pages 25 Comments 59 Separator 60 Appearance 65 Plugins 70 Users 75 Tools 80 Settings 99 Separator** La doc se trouve ici: [url=http://codex.wordpress.org/Function\_Reference/add\_menu\_page]add\_menu\_page[/url] [url=http://codex.wordpress.org/Function\_Reference/add\_submenu\_page]add\_submenu\_page[/url] un exemple d'utilisation: [code]function theme_options_panel(){ add_menu_page('Theme page title', 'Theme menu label', 'manage_options', 'theme-options', 'wps_theme_func'); add_submenu_page( 'theme-options', 'Settings page title', 'Settings menu label', 'manage_options', 'theme-op-settings', 'wps_theme_func_settings'); add_submenu_page( 'theme-options', 'FAQ page title', 'FAQ menu label', 'manage_options', 'theme-op-faq', 'wps_theme_func_faq'); } add_action('admin_menu', 'theme_options_panel'); function wps_theme_func(){ echo '
Theme'; } function wps_theme_func_settings(){ echo '
Settings'; } function wps_theme_func_faq(){ echo '
FAQ'; }[/code] [url=http://wpsnipp.com/index.php/functions-php/create-custom-add\_menu\_page-with-add\_submenu\_page-admin-panel/]Source de l'exemple[/url] J'espère que cela te guidera :)