timothyjensen/post-tag-checklist 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

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.

Post Tag Checklist screenshot

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2017-12-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固