【文件属性】:
文件名称:wordpress-metabox:在 wordpress 中轻松创建元框的类
文件大小:10KB
文件格式:ZIP
更新时间:2021-06-06 10:26:58
PHP
wordpress-metabox
在 wordpress 中轻松创建元框的类
初始化:
创建 SMC_Metabox 类的新实例:
$metabox = new SMC_Metabox($id, $label, $post_type, $metabox_configuration, $context, $priority);
$id: 编辑屏幕部分的“id”属性
$label:编辑屏幕部分的标题,用户可见
$post_type:显示编辑屏幕部分的写屏幕类型('post'、'page'、'dashboard'、'link'、'attachment' 或 'custom_post_type',其中 custom_post_type 是自定义帖子类型 slug
$metabox_configuration:配置设置数组(见下文)
$context:(可选)应显示编辑屏幕部分的页面部
【文件预览】:
wordpress-metabox-master
----class-SMC-metabox.php(7KB)
----LICENSE(18KB)
----.gitignore(31B)
----README.md(3KB)