moxie-lean/wp-taxonomy
Composer 安装命令:
composer require moxie-lean/wp-taxonomy
包简介
wp-taxonomy
关键字:
README 文档
README
This library will allow you to easily create custom taxonomies
Installation
The easiest way to install this package is by using composer from your terminal:
composer require moxie-lean/wp-taxonomy
Or by adding the following lines on your composer.json file
"require": { "moxie-lean/wp-taxonomy": "*" }
This will download the file from the packagist site and the latest version located on master branch of the repository.
After that you can need to include the autoload.php file in order to
be able to autoload the class during the object creation.
include '/vendor/autoload.php';
Using wp-taxonomy
Modeled after WP-CPT
$tax = new \Lean\Taxonomy([ 'name' => 'Taxonomy Name', 'singular' => 'Single Tax', 'plural' => 'Multiple Taxes', 'slug' => 'new-taxonomy', 'objects' => [ 'cpt-one', 'cpt-two' ] ]); $tax->init();
统计信息
- 总下载量: 19.21k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-14