[wordpress插件] CMB Field Type: SorterCMB字段类型:排序器

wordpress 插件 文章 2020-03-26 05:00 526 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

This plugin gives you two CMB field types based on the Sorter script:

此插件基于Sorter脚本为您提供了两种CMB字段类型:

Usage

用法

`tb_sorter` – Select box with with typeahead-style search.

`tb_sorter` –选择带有预输入样式搜索的框。

Example:

示例:

    

    

$cmb->add_field(array(        

$ cmb-> add_field(array(        

'name' => 'Page Layout',        

'名称'=>'页面布局',        

'id' => $prefix .

'id'=> $ prefix。

'ingredients',        

'配料',        

'desc' => 'Select Page Layout',        

'desc'=>'选择页面布局',        

'type' => 'tb_sorter',        

'类型'=>'tb_sorter',        

'options' => array(            

'选项'=>数组(            

'enabled' => array(                

'启用'=>数组(                

'highlights' => 'Highlights',                

'highlights'=>'Highlights',                

'slider' => 'Slider',                

'slider'=>'Slider',                

'staticpage' => 'Static Page',            

'staticpage'=>'静态页面',            

),            

),            

'disabled' => array(                

'disabled'=>数组(                

'services' => 'Services'            

'服务'=>'服务'            

)        

)        

),    

),    

));

));

Out put

输出

    

    

get_post_meta(get_the_ID(), '_yourprefix_about_ingredients', true);

get_post_meta(get_the_ID(),'_yourprefix_about_ingredients',true);

IMPORTANT: The key pair of ‘placebo’ => ‘placebo’ IS NO LONGER REQUIRED.

重要提示:不再需要使用“安慰剂” =>“安慰剂”这对密钥。

安装步骤

You can install this field type as you would a WordPress plugin:

您可以像安装WordPress插件一样安装此字段类型:

    1. Download the plugin
    2. 下载插件

    3. Place the plugin folder in your /wp-content/plugins/ directory
    4. 将插件文件夹放置在/ wp-content / plugins /目录中

    5. Activate the plugin in the Plugin dashboard
    6. 在“插件”信息中心中激活插件

    7. Alternatively, you can place the plugin folder in with your theme/plugin.

    8. 或者,您可以将plugin文件夹与主题/插件一起放入。

      After you call CMB:

    9. 致电CMB后:

    Add another line to include the cmb-field-sorter.php file.

    添加另一行以包含cmb-field-sorter.php文件。

    Something like:

    像这样的东西:

    require_once ‘cmb-field-type-sorter/cmb-field-sorter.php’;

    require_once‘cmb-field-type-sorter / cmb-field-sorter.php';

下载地址
https://downloads.wordpress.org/plugin/cmb-field-type-sorter.zip
-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] CallbackKiller service widgetCallbackKiller服务小部件
[wordpress插件] Change.org Action BloggerChange.org动作博客
[wordpress插件] CookieLess Google AnalyticsCookieLess Google Analytics(分析)
[wordpress插件] BLVD StatusBLVD状态
[wordpress插件] Decorator – WooCommerce Email Customizer装饰器– WooCommerce电子邮件定制器
随便看看
微信开放平台跟公众平台有什么区别? 3608
怎么添加小程序支付功能? 4516
教育科技公司申请微信支付被拒绝? 4799
微信公众号免300认证教程 5892
小程序已经上线,作为管理员无法在小程序数据助手查看数据? 5299
小程序广告组件通过审核,但是小程序内没有显示广告? 5067
企业微信通讯录账号被管理员误/恶意删除,怎么办? 9568
问题? 9048
如何快速搭建抽奖助手小程序(无需代码知识) 6177
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 7472