{"id":13750,"date":"2011-08-26T06:41:45","date_gmt":"2011-08-26T06:41:45","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/baw-papii-plugins-api-infos\/"},"modified":"2014-06-09T12:47:09","modified_gmt":"2014-06-09T12:47:09","slug":"baw-papii-plugins-api-infos","status":"closed","type":"plugin","link":"https:\/\/ko.wordpress.org\/plugins\/baw-papii-plugins-api-infos\/","author":6016133,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.6","stable_tag":"trunk","tested":"","requires":"2.8","requires_php":"","requires_plugins":"","header_name":"BAW Papii","header_author":"Julio Potier","header_description":"","assets_banners_color":"f2f2db","last_updated":"2014-06-09 12:47:09","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=RB7646G6NVPWU","header_plugin_uri":"http:\/\/boiteaweb.fr\/papii","header_author_uri":"http:\/\/boiteaweb.fr","rating":5,"author_block_rating":0,"active_installs":0,"downloads":1726,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"701548","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"702154","resolution":"1","location":"assets"}},"screenshots":{"1":"Demo for this plugin using kind of the example in FAQ","2":"Demo with the profile plugins list"}},"plugin_section":[],"plugin_tags":[1641,80],"plugin_category":[43,59],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-13750","plugin","type-plugin","status-closed","hentry","plugin_tags-information","plugin_tags-shortcode","plugin_category-customization","plugin_category-utilities-and-tools","plugin_committers-juliobox"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/baw-papii-plugins-api-infos_f2f2db.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/baw-papii-plugins-api-infos\/assets\/screenshot-1.png?rev=702154","caption":"Demo for this plugin using kind of the example in FAQ"}],"raw_content":"<!--section=description-->\n<p>Ever wanted to display some plugin's informations on your website ? But you didn't want to hard code it. PAPII is designed for this. Just use the [papii] shortcode to display informations from the official page.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Extract the plugin folder from the downloaded ZIP file.<\/li>\n<li>Upload BAW Papii folder to your \/wp-content\/plugins\/ directory.<\/li>\n<li>Activate the plugin from the \"Plugins\" page in your Dashboard.<\/li>\n<li>Go to settings !<\/li>\n<\/ol>\n\n<!--section=faq-->\n<ul>\n<li><p>How to use it ?<\/p>\n <blockquote>\n  <p>Use this shortcode [papii] with this properties:   plugin, info, cache.   Example : [papii plugin=\"baw-autoshortener\" info=\"version\" cache=\"48\"]   This code will show the version for baw-autoshortener plugin and store this data 48h.<\/p>\n<\/blockquote><\/li>\n<li><p>I need to retrieve all informations, what are they ?<\/p>\n <blockquote>\n  <p>You have : name, slug, version, author, author_profile, contributors, requires, tested, rating, num_ratings, downloaded, last_updated, added, homepage, description, installation, screenshots, changelog, faq, short_description, description, download_link, tags   Compatibility property is not included.<\/p>\n<\/blockquote><\/li>\n<li><p>Ok, so i need a full example<\/p>\n <blockquote>\n  <p>Use it first in your post like this:   [papii plugin=\"baw-autoshortener\" cache=\"24\"]   Then you can add this for example :   Download the version [papii info=\"version\" plugin=\"baw-autoshortener\" cache=\"24\"] for plugin [papii info=\"name\" plugin=\"baw-autoshortener\" cache=\"24\"] (downloaded [papii info=\"downloaded\" plugin=\"baw-autoshortener\" cache=\"24\"] times), here: [papii info=\"download_link\" plugin=\"baw-autoshortener\" cache=\"24\"]   This is a good way to implement this in a theme with do_shortcode ;)<\/p>\n<\/blockquote><\/li>\n<li><p>How can i get plugins from a WP.org profile ?<\/p>\n <blockquote>\n  <p>Use the same shortcode like this:   [papii profile=\"juliobox\" info=\"homemade\"\/]   you can even add in the shortcode content more shortcodes, see the plugin URI for some advanced examples.<\/p>\n<\/blockquote><\/li>\n<li><p>I'm developper, what can i do more?<\/p>\n <blockquote>\n  <p>You can ask in a theme\/plugin for \"tags_raw\", \"contributors_raw\" or \"sections\" and format it like you want.<\/p>\n<\/blockquote><\/li>\n<\/ul>\n\n<!--section=changelog-->\n<h4>1.6<\/h4>\n <ul>\n<li>09 jun 2014<\/li>\n<li>Change the way to retreive informations, more WP style<\/li>\n<li>Add the possibility to get plugins from a WP.org profile, homemade plugins or favorite ones, see FAQ<\/li>\n<\/ul>\n <h4>1.5.3<\/h4>\n <ul>\n<li>10 may 2013<\/li>\n<li>Fix a bug when you try to get informations from a non existent plugin<\/li>\n<\/ul>\n <h4>1.5.2<\/h4>\n <ul>\n<li>02 may 2013<\/li>\n<li>Filter added to shortcut the repository call, filter named \"papii-\".$plugin ($plugin comming from the \"plugin\" shortcode's prop)<\/li>\n<\/ul>\n <h4>1.5.1<\/h4>\n <ul>\n<li>23 apr 2013<\/li>\n<li>Little bug fix, sorry<\/li>\n<\/ul>\n <h4>1.5<\/h4>\n <ul>\n<li>23 apr 2013<\/li>\n<li>Better code again, avoid warning on cast or not serialized data<\/li>\n<li>Can return \"sections\" as serialized data<\/li>\n<\/ul>\n <h4>1.4<\/h4>\n <ul>\n<li>23 apr 2013<\/li>\n<li>Stop using XML and parsing, go .php !<\/li>\n<li>Better and shorter code again<\/li>\n<\/ul>\n <h4>1.3<\/h4>\n <ul>\n<li>22 apr 2013<\/li>\n<li>Remove the baw-papii_settings shortcode, useless<\/li>\n<li>Remove the \"sep\" value<\/li>\n<li>Added a \"papii\" shortcode, same as \"baw_papii\"<\/li>\n<li>Cache improved, one call per plugin, not per information, my bad!<\/li>\n<li>Added a function from my friend Greg to parse and cache full XML, thanks!<\/li>\n<\/ul>\n <h4>1.2<\/h4>\n <ul>\n<li>26 aug 2011<\/li>\n<li>First Release<\/li>\n<\/ul>","raw_excerpt":"Add some shortcodes to load information about a plugin from the repository or plugins from a profile.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ko.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/13750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ko.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ko.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ko.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=13750"}],"author":[{"embeddable":true,"href":"https:\/\/ko.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/juliobox"}],"wp:attachment":[{"href":"https:\/\/ko.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=13750"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ko.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=13750"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ko.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=13750"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ko.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=13750"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ko.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=13750"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ko.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=13750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}