
WP Shortcodes API
v0.8smccafferty · 2012年2月1日 上架
Stores information about available shortcodes as an option and provides a method to easily add a media button with configurable options.
- 正在使用
- 10+
- 评分
- 暂无
- 累计下载
- 2,332
- 最近更新
- 2012年10月19日
需要 WordPress 3.0+已测试到 3.4.2
The plugin take all of the data registered and created a multi-dimensional
array in an option called ‘_shortcodes’. Existing shortcodes that WP is away of
are also stored here with just their name and callback.
A few static methods for checking on shortcode info are provided.
GetShortcodeAtts($shortcode_name)
ShortcodeInPost($shortcode_name, $post_id)
Creating a new media button in the editor is easy with the add_media_button()
method. Just pass your shortcode name, attributes, a page title, introductory
text, and an icon image url.