| ... | ... | @@ -2,15 +2,15 @@ |
|
|
|
|
|
|
|
## **What's this pluggin for?**
|
|
|
|
|
|
|
|
The plugins creates and expose the `rest_ce_landing` custom post type as an REST API resource, allowing remote management WP content on top of HTTP requests. The aim is to syncronize content from the Odoo backend and the WP database.
|
|
|
|
The plugins creates and expose the `rest-ce-landing` custom post type as an REST API resource, allowing remote management WP content on top of HTTP requests. The aim is to syncronize content from the Odoo backend and the WP database.
|
|
|
|
|
|
|
|
## **How does it work?**
|
|
|
|
|
|
|
|
The activation of the plugin creates a new custom post type on the wordpress instance. The post type configuration can be found on at `post_types/rest_ce_landing.php`. This is the content media type that the plugin will work with when handling ajax requests from Odoo.
|
|
|
|
The activation of the plugin creates a new custom post type on the wordpress instance. The post type configuration can be found on at `post-types/rest-ce-landing.php`. This is the content media type that the plugin will work with when handling ajax requests from Odoo.
|
|
|
|
|
|
|
|
Bound to the new custom post type, the plugins registers a new template placedin `templates/single-rest_ce_landing.php`.
|
|
|
|
|
|
|
|
The last logic module is the `includes/rest-ce-landing-api-endpoint.php` where are configured getters and setters for custom fields to modify the interface rest api endpoint.
|
|
|
|
The last logic module is the `includes/endpoints/rest-ce-landing.php` where are configured getters and setters for custom fields to modify the interface rest api endpoint.
|
|
|
|
|
|
|
|
## **Dependencies**
|
|
|
|
|
| ... | ... | |
| ... | ... | |