timothyjensen/post-tag-checklist
Composer 安装命令:
composer require timothyjensen/post-tag-checklist
包简介
Replace the standard post tag meta box with a category-style checklist (checkboxes).
README 文档
README
Replace the standard post tag meta box on the post edit screen with a category-style checklist (checkboxes). One key benefit over the standard post tag meta box is the ability to prevent users (by role, etc.) from creating new tags.
Requirements
PHP 5.4+
Installation
Download the zip file and install it using the WordPress plugin installer.
Usage
Once installed this plugin will automatically convert the post tag meta box to the category-style checklist. This behavior can be changed by filtering 'post_tag_checklist_toggle':
<?php /** * Show standard post tag meta box to users who have the 'manage_post_tags' capability. * * @param bool $render_checklist Whether or not to render the post tag checklist. Default is true. * @param array $args Array of arguments for the taxonomy. * @param string $taxonomy Taxonomy name. * @return bool */ add_filter( 'post_tag_checklist_toggle', function( $render_checklist, $args, $taxonomy ) { if ( current_user_can( 'manage_post_tags' ) ) { return false; } return $render_checklist; }, 10, 3 );
统计信息
- 总下载量: 562
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2017-12-04
