| ... | @@ -2,13 +2,18 @@ |
... | @@ -2,13 +2,18 @@ |
|
|
|
|
|
|
|
## **What's this pluggin for?**
|
|
## **What's this pluggin for?**
|
|
|
|
|
|
|
|
Once the connection has been between Wordpress and Odoo has been established through the WPCT Odoo Connect, this plugin serves as a ... so that Odoo can inform WordPress when a CE landing page must be created. Also to allow, once WordPress has created a CE landing page, to send back the post information to the backend. With these, the backend can either modify the post or delete it if necessary.
|
|
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?**
|
|
## **How does it work?**
|
|
|
lorem ipsum
|
|
|
|
|
|
|
|
|
|
### **Wordpress REST API**
|
|
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/single-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`.
|
|
|
|
|
|
|
|
### **Wordpress REST API Authentication dependecies**
|
|
The last logic module is the `includes/ce-api-endpoint.php` where are configured getters and setters for custom fields to modify the interface rest api endpoint.
|
|
|
|
|
|
|
|
## **Dependencies**
|
|
|
|
|
|
|
|
This plugins relays on the [WPCT Odoo Connect](https://git.coopdevs.org/coopdevs/website/wp/wp-plugins/wpct-odoo-connect) plugin
|
|
|
|
to establish connections with the Odoo backend.
|
|
|
|
|
|