{"id":51812,"date":"2016-10-29T23:38:07","date_gmt":"2016-10-29T23:38:07","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/aliens-sci\/"},"modified":"2016-11-01T04:08:38","modified_gmt":"2016-11-01T04:08:38","slug":"aliens-sci","status":"publish","type":"plugin","link":"https:\/\/de-ch.wordpress.org\/plugins\/aliens-sci\/","author":15174805,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.1","stable_tag":"trunk","tested":"4.6.30","requires":"1.0.1","requires_php":"","requires_plugins":"","header_name":"Custom fields to api","header_author":"Maher Samy","header_description":"","assets_banners_color":"b58181","last_updated":"2016-11-01 04:08:38","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/aliens-sci\/","header_author_uri":"https:\/\/plus.google.com\/104344598302998313721","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1101,"num_ratings":0,"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":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1524662","resolution":"128x128","location":"assets"},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1524662","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-1544x500-rtl.png":{"filename":"banner-1544x500-rtl.png","revision":"1524661","resolution":"1544x500","location":"assets"},"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"1524661","resolution":"1544x500","location":"assets"},"banner-772x250-rtl.png":{"filename":"banner-772x250-rtl.png","revision":"1524661","resolution":"772x250","location":"assets"},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1524661","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1556,2010],"plugin_category":[],"plugin_contributors":[125695],"plugin_business_model":[],"class_list":["post-51812","plugin","type-plugin","status-publish","hentry","plugin_tags-api","plugin_tags-custom-fields","plugin_contributors-4samy"],"banners":{"banner":"https:\/\/ps.w.org\/aliens-sci\/assets\/banner-772x250.png?rev=1524661","banner_2x":"https:\/\/ps.w.org\/aliens-sci\/assets\/banner-1544x500.png?rev=1524661","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/aliens-sci\/assets\/icon-128x128.png?rev=1524662","icon_2x":"https:\/\/ps.w.org\/aliens-sci\/assets\/icon-256x256.png?rev=1524662","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Puts all code from Custom fields to api.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Unzip and upload the <code>aliens-sci<\/code> directory to <code>\/wp-content\/plugins\/<\/code>.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>requires you to add the following to your functions.php file to allow filtering on the WP-API by meta_key<\/dt>\n<dd><p>add_filter( 'json_query_vars', 'filterJsonQueryVars' );<\/p>\n <p>function filterJsonQueryVars( $vars ) {     $vars[] = 'meta_key';     return $vars; }<\/p><\/dd>\n<dt>Once you added that, you can filter using these arguments<\/dt>\n<dd><p>dowmian.com\/wp-json\/posts?filter[orderby]=meta_value_num&amp;filter[meta_key]=order&amp;filter[order]=ASC<\/p><\/dd>\n<dt>Usage<\/dt>\n<dd><p>filter[orderby]: Either meta_value or meta_value_num depending on whether you're filtering on an alphanumeric value or a numeric value filter[meta_key]: The key you want to filter on, this is the name of the ACF field filter[order]: The order to receive the data in, ASC or DESC<\/p>\n <p>See the <code>CONTRIBUTING.md<\/code> file.<\/p><\/dd>\n<dt>How can I filter posts on a custom field?<\/dt>\n<dd><\/dd>\n <\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n <ul>\n<li>Initial release.<\/li>\n<\/ul>\n <h3>1.0.1<\/h3>\n <ul>\n<li>Bug fixes and performance improvements.<\/li>\n<\/ul>","raw_excerpt":"Puts all code from Custom fields to api.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/de-ch.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/51812","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/de-ch.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/de-ch.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/de-ch.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=51812"}],"author":[{"embeddable":true,"href":"https:\/\/de-ch.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/4samy"}],"wp:attachment":[{"href":"https:\/\/de-ch.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=51812"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/de-ch.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=51812"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/de-ch.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=51812"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/de-ch.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=51812"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/de-ch.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=51812"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/de-ch.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=51812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}