![]() |
WPDK
1.5.0
WordPress Development Kit
|
Public Member Functions | |
| __construct () | |
| Construct. More... | |
| tabs ($tabs=array()) | |
| Tabs. More... | |
| display () | |
| Display. More... | |
| addTab ($title, $callable_content) | |
| Add help tab. More... | |
| sidebar () | |
| Sidebar. More... | |
Data Fields | |
| $currentScreen | |
| Current screen. More... | |
Screen helper
You have to subclass this class
Definition at line 17 of file wpdk-screen-help.php.
| __construct | ( | ) |
Construct.
Create an instance of WPDKScreenHelp class
Definition at line 44 of file wpdk-screen-help.php.
| addTab | ( | $title, | |
| $callable_content | |||
| ) |
Add help tab.
Add a help tab to current screen
| string | $title | Tab title. The title is sanitize and used as id |
| callable | string | $callback | Any string content or callable function for content. |
Definition at line 94 of file wpdk-screen-help.php.
| display | ( | ) |
Display.
Used this method to add tab and sidebar to the screen
Definition at line 69 of file wpdk-screen-help.php.
| sidebar | ( | ) |
Sidebar.
Return the HTML markup for sidebar
Definition at line 127 of file wpdk-screen-help.php.
| tabs | ( | $tabs = array() | ) |
Tabs.
Return a key value pairs array with the list of tabs
| array | $tabs | List of tabs |
Definition at line 59 of file wpdk-screen-help.php.
| WP_Screen $currentScreen |