{"id":39683,"date":"2015-11-02T14:42:36","date_gmt":"2015-11-02T14:42:36","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-rest-api-multilanguage-over-wmpl\/"},"modified":"2015-11-02T14:42:36","modified_gmt":"2015-11-02T14:42:36","slug":"wp-rest-api-multilanguage-over-wmpl","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/wp-rest-api-multilanguage-over-wmpl\/","author":14646509,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.1","stable_tag":"trunk","tested":"4.3.34","requires":"4.3.0","requires_php":"","requires_plugins":"","header_name":"WP REST API multilanguage (over WMPL)","header_author":"elemind.com","header_description":"","assets_banners_color":"","last_updated":"2015-11-02 14:42:36","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/elemind.com","header_plugin_uri":"http:\/\/elemind.com\/","header_author_uri":"http:\/\/elemind.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2091,"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 at the moment.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"No screenshots since this works in the background."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[32184,1386,2301,103],"plugin_category":[48],"plugin_contributors":[92842],"plugin_business_model":[],"class_list":["post-39683","plugin","type-plugin","status-publish","hentry","plugin_tags-json-api","plugin_tags-multilanguage","plugin_tags-wp-rest-api","plugin_tags-wpml","plugin_category-language-tools","plugin_contributors-elemind","plugin_committers-elemind"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-rest-api-multilanguage-over-wmpl.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Plugin will allow you to fetch the WP REST API call with a \"lang\" variable.\nIt will retrieve the right content from WPML.<\/p>\n\n<p>Tested with the latest version of:<\/p>\n\n<ul>\n<li>WPML 3.2.7<\/li>\n<li>WP REST API 2.0-beta4<\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>Install the plugin in your wp-content\/plugins\/ directory.\nThen:<\/p>\n\n<ol>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Make a call to \"http:\/\/yoursite\/wp-json\/posts\/?lang=it\"<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How I can fetch my custom post type in current language?<\/dt>\n<dd><p>Add 'suppress_filters' =&gt; false on get_posts\/WP_Query call<\/p>\n\n<p>get_posts([\n    'post_type' =&gt; 'custom_post',\n    'suppress_filters' =&gt; false\n]);<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.1<\/h4>\n\n<ul>\n<li>Initial release<\/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:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/39683","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=39683"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/elemind"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=39683"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=39683"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=39683"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=39683"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=39683"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=39683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}