定制 elcontraption/wp-help-tab 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-30