跳到内容

WP Shortcodes API

v0.8

smccafferty · 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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums