X

How to Edit the Help Tab Dropdown in WordPress

Snippets by IsItWP

Are you looking for a way to edit the help tab dropdown? This snippet lets you customize the help tab dropdown by adding a new help “page”.

Instructions:

  1. Add this code to your theme’s functions.php file or in a site-specific plugin.
  2. Edit the echo statements in the custom_page_help() function to fit your needs.
<?php
add_action('load-page-new.php','add_custom_help_page');
add_action('load-page.php','add_custom_help_page');
function add_custom_help_page() {
   //the contextual help filter
   add_filter('contextual_help','custom_page_help');
}
function custom_page_help($help) {
   //keep the existing help copy
   echo $help;
   //add some new copy
   echo "<h5>Custom Features</h5>";
   echo "<p>Content placed above the more divider will appear in column 1. Content placed below the divider will appear in column 2.</p>";
}
?>

Note: If this is your first time adding code snippets in WordPress, then please refer to our guide on how to properly copy / paste code snippets in WordPress, so you don’t accidentally break your site.

If you liked this code snippet, please consider checking out our other articles on the site like: 7 best WordPress calendar plugins and how to start a blog.

Comments   Leave a Reply

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!