=== ===
Author: WeAreContent.
Tags: rest, ap i, endpoint, controller, meta, data, meta_data, toggle, endpoints, rest_base, rest_name, REST API
Requires at least: WordPress 6.8
Tested up to: 6.8.1
Stable tag: 4.1.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.txt

Enable a UI to toggle visibility and customize properties in WP REST API requests.

== Description ==

The WAC WP API POST plugin registers two endpoints to create and send posts from the WeAreContent platform.
These endpoints are only allowed to execute if they come from valid IP addresses corresponding to WeAreContent and the user has a valid application key and editor role.
Posts are created with the user with the editor role and application key associated with the site indicated in the request.
The featured image and additional images are added via URL (authorized space verification).
The post categories and tags are created if they are not on the site.
The slug is validated to ensure uniqueness.
The SEO attributes, keywords and meta descriptions are assigned as long as Yoast SEO is installed

> **Note:** This plugin requires WordPress Version 6.8 or later to work.

**Features:**
* Update from version 4.7 to 6.8 of WordPress
* Enable/Disable REST API endpoints for custom post types and taxonomies.
* Enable/Disable custom post type/taxonomy meta data (add or remove meta fields from API requests).



== Installation ==

1. Download the plugin .zip file and make note of where on your computer you downloaded it to.
2. In the WordPress admin (yourdomain.com/wp-admin) go to Plugins > Add New or click the "Add New" button on the main plugins screen.
3. On the following screen, click the "Upload Plugin" button.
4. Browse your computer to where you downloaded the plugin .zip file, select it and click the "Install Now" button.
5. After the plugin has successfully installed, click "Activate Plugin" and enjoy!


== Frequently Asked Questions ==

= Can I toggle the visibility of endpoints? =

Yes! You can quickly and easily toggle the endpoints, so they are either accessible or inaccessible to API requests. Using our interface you can enable the post types you need, while disabling the ones you don't.



<strong>Note:</strong> All properties in the API request are populated using `get_post_meta()` or `get_term_meta()`. If you need to filter a meta value, you can use the `wp_rest_api_controller_api_property_value` filter provided by this plugin.

== Screenshots ==

1. WP REST API Controller settings page.

== Changelog ==


= v2.1.0 - May 26th, 2025 =
* Added end point.
* Bumped version number to v2.1.0.

= v1.0.0 =
* Initial plugin commit.

== Upgrade Notice ==

= v1.3.0 - January 10th, 2022 =
* Refactor code base.
* Repair a few errors.
* Updated plugin compatibility to work alongside WordPress 4.7 and later (REST API now baked into core).

== Upgrade Notice ==

= v2.1.0 - May 26th, 2025 =
* Refactor code base, optimize code for WP_REST_request,WP_REST_response, callback
* Update SEO variables for WordPress version 6.8
* 

== Upgrade Notice ==

= v3 - jun 15th, 2025 =
* Refactor code base, include featured image, create tag and category if not exits

== Upgrade Notice ==

= v4 - Sep 25th, 2025 =
* Refactor code base, update for insert any images
*

= v4.1 - Oct 06, 2025 =
* Add OWASP validations and standards.
*

= v4.1.1 - Oct 08, 2025 =
* 
* Add IP restrictions and validations.
*