定制 gizburdt/cuztom 二次开发

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

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

gizburdt/cuztom

最新稳定版本:3.1.10

Composer 安装命令:

composer require gizburdt/cuztom

包简介

Cuztom. Easy meta data.

README 文档

README

Cuztom is a Wordpress library, which can be used to easily register Post Types, Taxonomies, Meta Boxes, Term Meta, User Meta. Please comment, review, watch, fork and report bugs. Requires Wordpress 4.4+. :)

Basic usage

Add Custom Post Types

$book = register_cuztom_post_type('Book');

Add Custom Taxonomies

To add Custom Taxonomies to the newly created Post Type, simply call this method.

$book->addTaxonomy('Author');

You can also call this as a seperate function like this. The second parameter is the Post Type name.

$taxonomy = register_cuztom_taxonomy('Author', 'book');

Add Meta Boxes

Add Meta Boxes.

register_cuztom_meta_box(
    'meta_box_id',
    'book',
    array(
        'title'     => 'Book Info',
        'fields'    => array(
            'id'           => '_author',
            'label'        => 'Author',
            'description'  => 'Just a little description',
            'type'         => 'text'
        )
    )
);

Documentation

See the documentation for advanced guides, changelog.

统计信息

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

GitHub 信息

  • Stars: 244
  • Watchers: 38
  • Forks: 98
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-25