WP REST Filter Wordpress Plugin - Rating, Reviews, Demo & Download
Plugin Description
Since WordPress 4.7 the filter
argument for any post endpoint was removed.
This plugin restores the filter
parameter for websites that were previously using it.
Usage
Use the filter
parameter on any Post, or Custom Post Type endpoint such as /wp/v2/posts
or /wp/v2/cpt
as an array of WP_Query
argument. ACF values are also supported.
Default Post:
fetch( 'https://domain.com/wp-json/acf/v3/post?filter[meta_key]=acfkey&filter[meta_value]=acfvalue');
Custom Post Type
// fetch( 'https://domain.com/wp-json/acf/v3/customposttype?filter[meta_key]=acfkey&filter[meta_value]=acfvalue');
fetch( 'https://domain.com/wp-json/acf/v3/ads?filter[meta_key]=currency&filter[meta_value]=AUD'); // here 'ads' is the endpoint for CPT
Contact Us
Based in Sydney, SK8Tech is a innovative company providing IT services to SMEs, including Web Design, App Development and more.
Screenshots
-
An sample GET request using WP REST Filter.