ldc-crm-client/docs/usages/wordpress-client.md

22 lines
821 B
Markdown
Raw Permalink Normal View History

# Wordpress client usage
[Back](../../readme.md)
This client is experimental. It may be used on wordpress sites.
To use it you shall create a new table :
// TABLE LDC CUSTOMERS
CREATE TABLE `ldc_wp_customers` (
`hashcode` VARCHAR(36) NOT NULL DEFAULT '' COMMENT 'Le hashcode (UUID)',
`email` VARCHAR(255) NOT NULL DEFAULT '' COMMENT 'Le customer email',
`uuid` VARCHAR(50) NOT NULL DEFAULT '' COMMENT 'Code unique (inscripton, validation, etc)',
PRIMARY KEY (`hashcode`)
)
COMMENT='Les customers sur un WP liées à la CRM'
COLLATE='utf8mb4_unicode_ci';
It will handle for you the customer session provide login and logout method but also other services provided by the crm.
For more detailed info, you may refer to the [Client API DOC](../client-api/index.html)