Wordpress : Edit the Help Dropdown Text

/ Published in: PHP
Save to your folder(s)

This is a great place to add your own custom Help text for a client. You can even customize it for different Admin panels. For example, you can add a different Help text for the Add New Post panel and another one for the Comments panel.

Here’s how you go about it:

To find what file you should add the action to, just check the address bar in your browser and add the load- prefix right before the file name. For example, if you wanted to add the custom Help text to the Add New Post panel, which has a file name of post-new.php, then you would use load-post-new.php as the parameter of the add_action function shown above.

Copy this code and paste it in your HTML
  1. add_action('load-page-new.php','custom_help_page');
  2. add_action('load-page.php','custom_help_page');
  3. function custom_help_page() {
  4. add_filter('contextual_help','custom_page_help');
  5. }
  6. function custom_page_help($help) {
  7. // echo $help; // Uncomment if you just want to append your custom Help text to the default Help text
  8. echo "<h5>Custom Help text</h5>";
  9. echo "<p> HTML goes here.</p>";

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.