[wordpress插件] Conditional Shortcode条件简码

wordpress 插件 文章 2020-03-30 05:40 607 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Conditional Shortcode.

有条件的简码。

Adds a shortcode gracias_por_donar that retrieves a text depending on an integer parameter passed as a request

添加一个简短代码gracias_por_donar,该代码根据作为请求传递的整数参数来检索文本

Shortcode attributes:

简码属性:

– text0, text1, text2, text3 are texts to print – range1, range2, range3 are integers (default values 0) – get is the name of the request parameter that can be passed as post or get (default value is “amt”)

– text0,text1,text2,text3是要打印的文本– range1,range2,range3是整数(默认值0)– get是可以作为post或get传递的请求参数的名称(默认值为“ amt”)

usage

用法

[gracias_por_donar text0=”this text is printed if amt value is lower than range1″ text1=”this text is printed if value amt is between range1 and range2″ text2=”this text is printed if value amt is between range2 and range3″ text3

[gracias_por_donar text0 =”如果amt值小于range1,则打印此文本” text1 =”如果amt值在range1与range2之间,则打印此文本” text2 =“”如果amt值在range2与range3之间,则打印此文本

=”this text is printed if value amt is greater or equal than range3″ range1=”20″ range2=”50″ range3=”80″ get=”amt”]

=”如果amt值大于或等于range3”,则打印此文本,range1 =” 20” range2 =” 50” range3 =” 80” get =” amt”]

for example:

例如:

http://mywordpresssite.org/page?amt=30 would print text1 as amt value is between range1 and range2 (based on usage sample)

http://mywordpresssite.org/page?amt=30将打印text1,因为其amt值在range1和range2之间(根据使用情况示例)

安装步骤

    1. Unzip plugin files and upload them under your ‘/wp-content/plugins/’ directory.
    2. 解压缩插件文件并将其上传到您的“ / wp-content / plugins /”目录下。

    3. Resulted names will be: ‘./wp-content/plugins/conditional-shortcode/*’
    4. 结果名称为:“ ./ wp-content / plugins / conditional-shortcode / *”

    5. Activate plugin at “Plugins” administration page.
    6. 在“插件”管理页面上激活插件。

下载地址
https://downloads.wordpress.org/plugin/conditional-shortcode.zip
-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] Discography唱片目录
[wordpress插件] ABG Rich PinsABG Rich Pins
[wordpress插件] Automate Chrome Push Notifications自动执行Chrome Push通知
[wordpress插件] Content Icons内容图标
[wordpress插件] Color Help颜色帮助
随便看看
企业微信通讯录账号被管理员误/恶意删除,怎么办? 9568
问题? 9048
如何快速搭建抽奖助手小程序(无需代码知识) 6177
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 7472
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 6793
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 6128
如何解决渲染层网络错误Failed to load media? 17394
小程序找号找回 释放昵称? 3253
我的小程序广告主收入5301,实际进账4406,是怎么回事呀? 3109
删除部分微信用户个人数据的通知,怎么删除? 6381