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:
- Add this code to your theme’s functions.php file or in a site-specific plugin.
- 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