{"id":36137,"date":"2015-05-04T03:12:25","date_gmt":"2015-05-04T03:12:25","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wpml-to-wp-api\/"},"modified":"2015-05-04T03:12:25","modified_gmt":"2015-05-04T03:12:25","slug":"wpml-to-wp-api","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wpml-to-wp-api\/","author":14344768,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.1","stable_tag":"trunk","tested":"4.2.39","requires":"4.2.1","requires_php":"","requires_plugins":"","header_name":"WPML to WP API","header_author":"Ryuhei Yokokawa","header_description":"","assets_banners_color":"","last_updated":"2015-05-04 03:12:25","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/y-designs.com","header_plugin_uri":"http:\/\/y-designs.com\/","header_author_uri":"http:\/\/y-designs.com","rating":5,"author_block_rating":0,"active_installs":20,"downloads":2777,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<p>No upgrades will happen at this time.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"No screenshots since this works in the background."}},"plugin_section":[],"plugin_tags":[32184,1386,2301,103],"plugin_category":[48],"plugin_contributors":[84595],"plugin_business_model":[],"class_list":["post-36137","plugin","type-plugin","status-closed","hentry","plugin_tags-json-api","plugin_tags-multilanguage","plugin_tags-wp-rest-api","plugin_tags-wpml","plugin_category-language-tools","plugin_contributors-ryuheixys","plugin_committers-ryuheixys"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wpml-to-wp-api.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Plugin will allow you to fetch the WP-API (WP-JSON-API) call with a \"lang\" variable.  It will retrieve the right content from WPML\/WP.<\/p>\n\n<p>This only works with WPML and WP-API installed.  I tested only with the latest version as of now:\n* WPML 3.1.9.6\n* WP REST API 1.2.1<\/p>\n\n<!--section=installation-->\n<p>Install the plugin as you would with any WordPress plugin in your wp-content\/plugins\/ directory or equivalent.\nThen:\n1. Activate the plugin through the 'Plugins' menu in WordPress\n1. Make a call to \"http:\/\/yoursite\/wp-json\/posts\/?lang=ja\" (in my case, its ja for Japanese, but it could be fr if you're French!)<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>Is this guaranteed to work<\/dt>\n<dd><p>No. I threw it together in 5 minutes<\/p><\/dd>\n<dt>What about foo bar?<\/dt>\n<dd><p>If you want foo bar fixed, email me at info@y-designs.com \nYou bet your butt you can pay me for it ;)<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.1<\/h4>\n\n<ul>\n<li>Initial release no guarantees<\/li>\n<\/ul>","raw_excerpt":"Allows you to request a language with your WP-API and WPML site.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/36137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=36137"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/ryuheixys"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=36137"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=36137"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=36137"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=36137"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=36137"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=36137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}