wp-post-type:一个 WordPress 自定义帖子类型创建者类

时间:2021-06-16 22:44:21
【文件属性】:
文件名称:wp-post-type:一个 WordPress 自定义帖子类型创建者类
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-16 22:44:21
PHP WP 帖子类型 一个 WordPress 自定义帖子类型创建者类。 安装 通过作曲家: composer require elcontraption/wp-post-type 创建帖子类型 创建一个“事件”帖子类型: use \ ElContraption \ WpPostType \ PostType ; $ events = new PostType ( 'event' ); 第一个参数可以是表示帖子类型名称的字符串(通常是单数),也可以是定义singular和plural名称的数组: $ events = new PostType ( array ( // These are required when passing an array for the first parameter 'singular' => 'Gallery' , 'plur
【文件预览】:
wp-post-type-master
----.gitignore(17B)
----README.md(1KB)
----composer.json(497B)
----src()
--------PostType.php(4KB)

网友评论