{"id":16647,"date":"2012-02-01T14:19:36","date_gmt":"2012-02-01T14:19:36","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wordpress-shortcodes-api\/"},"modified":"2012-10-18T19:18:56","modified_gmt":"2012-10-18T19:18:56","slug":"wordpress-shortcodes-api","status":"publish","type":"plugin","link":"https:\/\/zh-sg.wordpress.org\/plugins\/wordpress-shortcodes-api\/","author":8526498,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.8","stable_tag":"0.8","tested":"3.4.2","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"WP Shortcodes API","header_author":"markparolisi, voceplatforms","header_description":"","assets_banners_color":"d94965","last_updated":"2012-10-18 19:18:56","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/plugins.voceconnect.com\/","header_author_uri":"http:\/\/plugins.voceconnect.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2099,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":{"banner-1154x500.png":{"filename":"banner-1154x500.png","revision":"630313","resolution":"1154x500","location":"assets"},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"630313","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.7","0.8"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[80],"plugin_category":[43],"plugin_contributors":[78213,78212,78214],"plugin_business_model":[],"class_list":["post-16647","plugin","type-plugin","status-publish","hentry","plugin_tags-shortcode","plugin_category-customization","plugin_contributors-markparolisi","plugin_contributors-smccafferty","plugin_contributors-voceplatforms","plugin_committers-smccafferty"],"banners":{"banner":"https:\/\/ps.w.org\/wordpress-shortcodes-api\/assets\/banner-772x250.png?rev=630313","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wordpress-shortcodes-api_d94965.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>The plugin take all of the data registered and created a multi-dimensional \narray in an option called '_shortcodes'. Existing shortcodes that WP is away of\nare also stored here with just their name and callback.<\/p>\n\n<p>A few static methods for checking on shortcode info are provided.\n    GetShortcodeAtts($shortcode_name)\n    ShortcodeInPost($shortcode_name, $post_id)<\/p>\n\n<p>Creating a new media button in the editor is easy with the <code>add_media_button()<\/code> \nmethod. Just pass your shortcode name, attributes, a page title, introductory \ntext, and an icon image url.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>wp-shortcodes-api.php<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li><p>example implementation:<\/p>\n\n<pre><code>if (class_exists('WP_Shortcodes_API')) {\n        WP_Shortcodes_API::GetInstance()-&gt;\n            add_shortcode($shortcode_name, $callback)-&gt;\n            add_att($att_name)-&gt;\n            add_att($att_name2)-&gt;\n            add_media_button(array(\n                'shortcode' =&gt; $shortcode_name,\n                'title' =&gt; $thickbox_title,\n                'icon_url' =&gt; $button_icon_url,\n                'intro' =&gt; $introduction_to_form,\n                'input_atts' =&gt; WP_Shortcodes_API::GetShortcodeAtts($shortcode_name)\n            ));\n    } else {\n        \/\/ fallback if the plugin is unavailable.\n        add_shortcode($shorcode_name, $callback);\n    }\n<\/code><\/pre><\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>0.1<\/h4>\n\n<p>Initial release.<\/p>","raw_excerpt":"Stores information about available shortcodes as an option and provides a method to easily add a media button with configurable options.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/zh-sg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/16647","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zh-sg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/zh-sg.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/zh-sg.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=16647"}],"author":[{"embeddable":true,"href":"https:\/\/zh-sg.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/smccafferty"}],"wp:attachment":[{"href":"https:\/\/zh-sg.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=16647"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/zh-sg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=16647"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/zh-sg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=16647"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/zh-sg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=16647"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/zh-sg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=16647"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/zh-sg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=16647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}