WP REST Filter Wordpress Plugin - Rating, Reviews, Demo & Download

WP REST Filter Wordpress Plugin - Rating, Reviews, Demo & Download
No ratings yet
Free
Follow for free plugins, new theme releases and theme news

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

  1. An sample GET request using <a href="https://wordpress.org/plugins/wp-rest-filter/">WP REST Filter</a>.

    An sample GET request using WP REST Filter.


Reviews & Comments