Last active
October 27, 2022 21:51
-
-
Save tevashov/5172487 to your computer and use it in GitHub Desktop.
Change Contents of Dashboard Help Tab #WP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // hook loading of new page and edit page screens | |
| 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>"; | |
| } | |
| add_action('load-page-new.php','add_custom_help_page'); | |
| add_action('load-page.php','add_custom_help_page'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment