How to Modify the Help Dropdown Text in WordPress Admin Area

0
0



Each WordPress admin screen has a Help button. This area drop downs and contains text that helps the user understand the features of the specific page. When creating a custom site for your clients or a plugin, then you may find a need to modify the Help Dropdown text. In this article, we will show you how to modify the help dropdown text in WordPress admin area.

First open your theme’s functions.php file and paste the following code:

add_action(‘load-page-new.php’,’custom_help_page’);
add_action(‘load-page.php’,’custom_help_page’);
function custom_help_page() {
add_filter(‘contextual_help’,’custom_page_help’);
}
function custom_page_help($help) {
// echo $help; // Uncomment if you just want to append your custom Help text to the default Help text
echo “

Custom Help text

“;
echo “

HTML goes here.

“;
}

This code above will add custom help text on every Add New Page screen. You can do this for your posts page, or any other screen. This is something that we will be utilizing for our plugins that we have intentions of creating.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>