Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function addHelpMenu()
- {
- $objScreen = get_current_screen();
- if ($objScreen->post_type == 'post') {
- if (FALSE !== $strHelpContents = file_get_contents(dirname(__FILE__).DIRECTORY_SEPARATOR.'views'.DIRECTORY_SEPARATOR.'sampleHelp.html')) {
- $objScreen->add_help_tab(array(
- 'id' => 'sample_help_tab',
- 'title' => 'Sample Help Tab',
- 'content' => $strHelpContents,
- ));
- }
- }
- }
- add_action('load-post.php','addHelpMenu');
- add_action('load-post-new.php','addHelpMenu');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement