活动介绍

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

preview
共4个文件
md:1个
json:1个
php:1个
需积分: 0 0 下载量 186 浏览量 更新于2021-06-16 收藏 3KB ZIP 举报
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
身份认证 购VIP最低享 7 折!
30元优惠券