定制 wenprise/content-types 二次开发

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

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

wenprise/content-types

Composer 安装命令:

composer require wenprise/content-types

包简介

Create WordPress content types and taxonomies more easier.

README 文档

README

Create WordPress content types and taxonomies easier.

Register Post type

 \WenpriseContentTypes\ContentType::register( "work", "Works", [ 'title', 'editor', 'thumbnail'], true, false, 'dashicons-art' );

Params

 @param string  $name         Post type name in the menu and page title
 @param array|boolean   $support      The functions post type support
 @param boolean $is_publish   Is publish in frontend
 @param boolean $hierarchical is hierarchical
 @param string  $icon         the dashicon of the dashboard menu

Filters

  • wprs_type_labels_$slug: modify the post type labels
  • wprs_type_args_$slug: modify the args to register the post type

Register Taxonomy

\WenpriseContentTypes\Taxonomy::register( "work_type", 'work', "Work Type", true );

Params

@param string       $tax_slug     Taxonomy slug
@param string|array $post_type    the post type of the taxonomy registered to 
@param string       $tax_name     Taxonomy name 
@param boolean      $hierarchical is hierarchical

Filters

  • wprs_type_labels_$slug: modify the post type labels
  • wprs_type_args_$slug: modify the args to register the post type
  • wprs_tax_types_$slug: Modify the post types taxonomy registered to

统计信息

  • 总下载量: 491
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-12-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固