wpessential/wpessential-postypes
最新稳定版本:0.2.3
Composer 安装命令:
composer require wpessential/wpessential-postypes
包简介
WPEssential Postypes helping in registry of custom post types and taxonomies in WordPress.
README 文档
README
Help to register the custom post types and taxonomies in WordPress.
composer require wpessential/wpessential-postypes
Add the post type to WordPress registry
$name = 'YOUR_POST_TYPE_NAME'; $cpt = \WPEssential\Library\Cpt::make($name); $cpt->register();
Remove the post type from WordPress registry
$name = 'YOUR_POST_TYPE_NAME'; $cpt = \WPEssential\Library\Cpt::make($name); $cpt->remove();
Add the taxonomy to WordPress registry
$post_type = 'YOUR_POST_TYPE_SLUG'; $name = 'YOUR_TAXONOMY_NAME'; $ctxm = \WPEssential\Library\Ctxm::make($post_type, $name); $ctxm->register();
Remove the taxonomy from WordPress registry
$post_type = 'YOUR_POST_TYPE_SLUG'; $name = 'YOUR_TAXONOMY_NAME'; $ctxm = \WPEssential\Library\Ctxm::make($post_type, $name); $ctxm->remove();
统计信息
- 总下载量: 18
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2024-12-30