elcontraption/wp-help-tab
最新稳定版本:0.1.5
Composer 安装命令:
composer require elcontraption/wp-help-tab
包简介
A WordPress custom help tab creator class.
README 文档
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');
}
));
统计信息
- 总下载量: 234
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-30