Title: WP Shortcodes API
Author: smccafferty
Published: <strong>1 Februari 2012</strong>
Last modified: 18 Oktober 2012

---

Cari plugin

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

Plugin ini **belum teruji dangan 3 rilis besar WordPress**. Kemungkinan tidak lagi
dipelihara atau didukung, dan mungkin menghadapi masalah kompatibilitas bila digunakan
dengan versi WordPress yang lebih baru.

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

# WP Shortcodes API

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

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

 * [Detail](https://id.wordpress.org/plugins/wordpress-shortcodes-api/#description)
 * [Ulasan](https://id.wordpress.org/plugins/wordpress-shortcodes-api/#reviews)
 *  [Instalasi](https://id.wordpress.org/plugins/wordpress-shortcodes-api/#installation)
 * [Pengembangan](https://id.wordpress.org/plugins/wordpress-shortcodes-api/#developers)

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

## Deskripsi

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.

## Instalasi

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

## Ulasan

Belum ada ulasan untuk plugin ini.

## Kontributor & Pengembang

“WP Shortcodes API” adalah perangkat lunak open source. Berikut ini mereka yang 
sudah berkontribusi pada plugin ini.

Kontributor

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

[Terjemahkan “WP Shortcodes API” dalam bahasa Anda.](https://translate.wordpress.org/projects/wp-plugins/wordpress-shortcodes-api)

### Tertarik mengembangkan?

[Lihat kode](https://plugins.trac.wordpress.org/browser/wordpress-shortcodes-api/),
periksa [repositori SVN ](https://plugins.svn.wordpress.org/wordpress-shortcodes-api/),
atau mendaftar ke [log pengembangan](https://plugins.trac.wordpress.org/log/wordpress-shortcodes-api/)
melalui [RSS](https://plugins.trac.wordpress.org/log/wordpress-shortcodes-api/?limit=100&mode=stop_on_copy&format=rss).

## Log Perubahan

#### 0.1

Initial release.

## Meta

 *  Versi **0.8**
 *  Diperbarui **14 tahun yang lalu**
 *  Instalasi Aktif **10+**
 *  Versi WordPress ** 3.0 atau yang terbaru **
 *  Diuji hingga **3.4.2**
 *  Bahasa
 * [English (US)](https://wordpress.org/plugins/wordpress-shortcodes-api/)
 * Tag
 * [shortcode](https://id.wordpress.org/plugins/tags/shortcode/)
 *  [Tampilan lanjut](https://id.wordpress.org/plugins/wordpress-shortcodes-api/advanced/)

## Rating

No reviews have been submitted yet.

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

[Lihat semua ulasan](https://wordpress.org/support/plugin/wordpress-shortcodes-api/reviews/)

## Kontributor

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

## Bantuan

Ada yang ingin dikatakan? Butuh bantuan?

 [Lihat forum bantuan](https://wordpress.org/support/plugin/wordpress-shortcodes-api/)