Plugin info

Total downloads: 1,998
Active installs: 10
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 4
Last updated: 10/18/2012 (4822 days ago)
Added to WordPress: 2/1/2012 (13 years old)
Minimum WordPress version: 3.0
Tested up to WordPress version: 3.4.2
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 4822 days ago

20/100

Is WP Shortcodes API abandoned?

Possibly abandoned (last update 4822 days ago).

Compatibility

Requires WordPress: 3.0
Tested up to: 3.4.2
Requires PHP: f

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

WP Shortcodes Plugin — Shortcodes Ultimate
Rating 4.9/5 (5,906 reviews)Active installs 500,000
MW WP Form
Rating 4.3/5 (22 reviews)Active installs 200,000
Rich Shortcodes for Google Reviews
Rating 4.9/5 (1,547 reviews)Active installs 100,000
Shortcoder — Create Shortcodes for Anything
Rating 4.9/5 (224 reviews)Active installs 100,000
Display Posts – Easy lists, grids, navigation, and more
Rating 4.8/5 (164 reviews)Active installs 90,000
Widget Shortcode
Rating 4.9/5 (67 reviews)Active installs 80,000

Description

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.

Installation

  1. Upload wp-shortcodes-api.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. example implementation:

    if (class_exists('WP_Shortcodes_API')) {
            WP_Shortcodes_API::GetInstance()->
                add_shortcode($shortcode_name, $callback)->
                add_att($att_name)->
                add_att($att_name2)->
                add_media_button(array(
                    'shortcode' => $shortcode_name,
                    'title' => $thickbox_title,
                    'icon_url' => $button_icon_url,
                    'intro' => $introduction_to_form,
                    'input_atts' => WP_Shortcodes_API::GetShortcodeAtts($shortcode_name)
                ));
        } else {
            // fallback if the plugin is unavailable.
            add_shortcode($shorcode_name, $callback);
        }
    

Frequently Asked Questions

No FAQ available

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

0.1

Initial release.