webdevstudios/wds-shortcodes
Composer 安装命令:
composer require webdevstudios/wds-shortcodes
包简介
Base plugin/classes/functionality for creating shortcodes.
关键字:
README 文档
README
Contributors: WebDevStudios, jtsternberg, JayWood
Donate link: http://webdevstudios.com
Tags: shortcode button, shortcodes, cmb2, utility
Requires at least: 4.3
Tested up to: 4.3
Stable tag: 1.0.7
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Description
WDS-Shortcodes gives developers the ability to easily register shortcodes with a corresponding button, so never again will your client ask, What's that shortcode again? Not only can you easily handle the button and shortcode registration, this also supports self-closing and wrapping shortcodes with a simple config flag.
Please note: you will need to run composer install in order to fetch the dependenceis for this plugin/library, or you can download the zip here.
Additionally, there is also built-in CMB2 support so you can use all your favorite fields.
For more info, check out the wiki.
To see a demo plugin, check out "Cool Shortcode".
Installation
Manual Installation
- Upload the entire
/wds-shortcodesdirectory to the/wp-content/plugins/directory. - Activate WDS Shortcodes through the 'Plugins' menu in WordPress.
Frequently Asked Questions
- None as of yet
Screenshots
Changelog
1.0.7
- Update for new version of shortcode button, where
ajax_parse_shortcodeis now an object method (vs class method).
1.0.6
- Update shortcode-button dependency. See changelog.
1.0.5
- Update shortcode-button dependency. See changelog.
1.0.4
- Update shortcode-button dependency to fix modal displaying before CSS loads.
1.0.3
WDS_Shortcode_Instances::get()now accepts a secondary argument,$index, for selecing the exact object instance under the shortcode namespace.
1.0.2
- Add new method,
WDS_Shortcode::json_decode_att(), for getting decoded json attribute values. Handles converting the pseudo-json format used when storing array field datat.
1.0.1
- Add new method,
WDS_Shortcode::bool_att(), for getting boolean attribute values. Handles converting "false" and "0" strings to false. - Undefined notice fix: Check if attribute value is a string before checking if it is json.
- Fix issue where faux json_encoded arrays were not being properly translated back to a php array.
1.0.0
- Update to be used as a library primarily (using wp-lib-loader). Will break back-compat for plugins extending the
WDS_Shortcode_Adminclass before the'init'hook.
0.1.3
- Update composer lock file and zip file after updating Shortcode_Button dependency.
0.1.2
- New method,
WDS_Shortcode::maybe_json()which automatically converts attributes from the modifed JSON string created by Shortcode_Button into a normal PHP array.
0.1.1
- Fix issues with ajax hooks not working (as they get hooked too late)
0.1.0
- First release
webdevstudios/wds-shortcodes 适用场景与选型建议
webdevstudios/wds-shortcodes 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 249 次下载、GitHub Stars 达 25, 最近一次更新时间为 2016 年 03 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「json」 「wordpress」 「wp-api」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 webdevstudios/wds-shortcodes 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 webdevstudios/wds-shortcodes 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 webdevstudios/wds-shortcodes 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Exposes Advanced Custom Fields Endpoints in the WordPress REST API
Kinikit - PHP Application development framework MVC component
ext-json wrapper with sane defaults
A package to cast json fields, each sub-keys is castable
WordPress API client for WP-API v2
Adds an endpoint to the WordPress REST API for searching via SearchWP.
统计信息
- 总下载量: 249
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 25
- 点击次数: 6
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2016-03-21
