forked from mlteal/wordpress-beta-tester
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial pass at adding a help tab to screen
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
/** | ||
* WordPress Beta Tester | ||
* | ||
* @package WordPress_Beta_Tester | ||
* @author Andy Fragen and Paul Biron, original author Peter Westwood. | ||
* @license GPLv2+ | ||
* @copyright 2009-2016 Peter Westwood (email : peter.westwood@ftwr.co.uk) | ||
*/ | ||
|
||
/** | ||
* WPBT Help | ||
*/ | ||
class WPBT_Help { | ||
/** | ||
* Load hooks for screen help tabs. | ||
* | ||
* @return void | ||
*/ | ||
public function load_hooks() { | ||
add_action( 'current_screen', array( $this, 'add_help_tabs' ) ); | ||
} | ||
|
||
/** | ||
* Add individual help tabs. | ||
* | ||
* @return void | ||
*/ | ||
public function add_help_tabs() { | ||
get_current_screen()->add_help_tab( | ||
array( | ||
'id' => 'overview', | ||
'title' => __( 'Overview' ), | ||
'content' => '<p>' . __( 'This screen provides help information for the Beta Tester plugin.', 'wordpress-beta-tester' ) . '</p>', | ||
) | ||
); | ||
} | ||
} |
This file contains 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