Skip to content

Instantly share code, notes, and snippets.

@Glinkfr
Created March 31, 2019 15:51
Show Gist options
  • Save Glinkfr/a2bc627dd0d76796fecfafb4aa64d019 to your computer and use it in GitHub Desktop.
Save Glinkfr/a2bc627dd0d76796fecfafb4aa64d019 to your computer and use it in GitHub Desktop.
Modifier le menu « aide » de l’administration
#Modifier le menu aide de l’administration
add_filter( 'contextual_help', 'glink_help', 5, 3 );
function glink_help( $old_help, $screen_id, $screen )
{
# ajoute un onglet au menu Aide
# Pour en ajouter un autre: copiez le code, changez l'id et créez un nouveau callbacks personnalisé
$screen->add_help_tab( array(
'id' => 'glink',
'title' => 'Aide Supplémentaire',
'content' => '<p>Pour obtenir plus d\'aide n\'hésitez pas à me contacter :</p>',
'callback' => 'glink_print_help'));
return $old_help;
}
function glink_print_help()
{ echo '<p>tel: 06 01 02 03 04</p><p>site: <a href="https://www.glink.fr">Glink</a></p>'; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment