Title: WP Shortcodes API
Author: smccafferty
Published: <strong>1 de febrero de 2012</strong>
Last modified: 18 de octubre de 2012

---

Buscar plugins

![](https://ps.w.org/wordpress-shortcodes-api/assets/banner-772x250.png?rev=630313)

Este plugin **no se ha probado con las últimas 3 versiones mayores de WordPress**.
Puede que ya no tenga soporte ni lo mantenga nadie, o puede que tenga problemas 
de compatibilidad cuando se usa con las versiones más recientes de WordPress.

![](https://s.w.org/plugins/geopattern-icon/wordpress-shortcodes-api_d94965.svg)

# WP Shortcodes API

 Por [smccafferty](https://profiles.wordpress.org/smccafferty/)

[Descargar](https://downloads.wordpress.org/plugin/wordpress-shortcodes-api.0.8.zip)

 * [Detalles](https://es-mx.wordpress.org/plugins/wordpress-shortcodes-api/#description)
 * [Opiniones](https://es-mx.wordpress.org/plugins/wordpress-shortcodes-api/#reviews)
 *  [Instalación](https://es-mx.wordpress.org/plugins/wordpress-shortcodes-api/#installation)
 * [Desarrollo](https://es-mx.wordpress.org/plugins/wordpress-shortcodes-api/#developers)

 [Soporte](https://wordpress.org/support/plugin/wordpress-shortcodes-api/)

## Descripción

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.

## Instalación

 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:
 4.     ```
        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);
            }
        ```
    

## Reseñas

No hay reseñas para este plugin.

## Colaboradores y desarrolladores

Este software es de código abierto. Las siguientes personas han contribuido a este
plugin.

Colaboradores

 *   [ smccafferty ](https://profiles.wordpress.org/smccafferty/)
 *   [ markparolisi ](https://profiles.wordpress.org/markparolisi/)
 *   [ voceplatforms ](https://profiles.wordpress.org/voceplatforms/)

[Traduce “WP Shortcodes API” a tu idioma.](https://translate.wordpress.org/projects/wp-plugins/wordpress-shortcodes-api)

### ¿Interesado en el desarrollo?

[Revisa el código](https://plugins.trac.wordpress.org/browser/wordpress-shortcodes-api/),
echa un vistazo al [repositorio SVN](https://plugins.svn.wordpress.org/wordpress-shortcodes-api/)
o suscríbete al [registro de desarrollo](https://plugins.trac.wordpress.org/log/wordpress-shortcodes-api/)
por [RSS](https://plugins.trac.wordpress.org/log/wordpress-shortcodes-api/?limit=100&mode=stop_on_copy&format=rss).

## Registro de cambios

#### 0.1

Initial release.

## Meta

 *  Versión **0.8**
 *  Última actualización **hace 13 años**
 *  Instalaciones activas **10+**
 *  Versión de WordPress ** 3.0 o superior **
 *  Probado hasta **3.4.2**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/wordpress-shortcodes-api/)
 * Etiqueta:
 * [shortcode](https://es-mx.wordpress.org/plugins/tags/shortcode/)
 *  [Vista avanzada](https://es-mx.wordpress.org/plugins/wordpress-shortcodes-api/advanced/)

## Valoraciones

Aún no se han enviado valoraciones.

[Your review](https://wordpress.org/support/plugin/wordpress-shortcodes-api/reviews/#new-post)

[Ver todas las valoraciones](https://wordpress.org/support/plugin/wordpress-shortcodes-api/reviews/)

## Colaboradores

 *   [ smccafferty ](https://profiles.wordpress.org/smccafferty/)
 *   [ markparolisi ](https://profiles.wordpress.org/markparolisi/)
 *   [ voceplatforms ](https://profiles.wordpress.org/voceplatforms/)

## Soporte

¿Tienes algo que decir? ¿Necesitas ayuda?

 [Ver el foro de soporte](https://wordpress.org/support/plugin/wordpress-shortcodes-api/)