elcontraption / wp-help-tab
This package is abandoned and no longer maintained.
No replacement package was suggested.
A WordPress custom help tab creator class.
0.1.5
2015-03-30 22:02 UTC
Requires
- php: >=5.4.0
This package is not auto-updated.
Last update: 2016-05-28 09:20:44 UTC
README
Easily create contextual help tabs in WordPress.
Installation
Install in your theme via composer:
composer require elcontraption/wp-help-tab
Usage
Create a new Help tab (page and title arguments are required):
use \ElContraption\WpHelpTab\HelpTab;
/**
* Create a new help tab on menu edit screens:
*/
new HelpTab(array(
'page' => 'nav-menus',
'title' => 'Custom Help Tab',
'content' => 'My custom help tab content.'
));
Use the optional callback argument to load a help tab template:
/**
* Create a new help tab on page edit screens:
*/
new HelpTab(array(
'page' => 'post',
'title' => 'Custom Page Editing Instructions',
'callback' => function() {
get_template_part('path/to/help/template');
}
));