
WP Shortcodes API
by smccafferty on WordPress.org
Stores information about available shortcodes as an option and provides a method to easily add a media button with configurable options.
(0)
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.
Active installations10+
Weekly downloads
7+75.00%
Version0.8
Last updated10/18/2012
WordPress version3.0
Tested up to3.4.2
Tags
shortcode