Before going through documentation chapters, thanks for purchasing PrivateContent Data Bridge add-on and trusting LCweb!
On first plugin's activation, it must be activated in order to work.
Head to the LCweb Dashboard page: it contains the summary of all LCweb products with useful links and their validation forms.
Your license is automatically registered into the LCweb database, you only need to
In case you have an intranet or localhost website (or your server is blocking external communications against the LCweb endpoint) you can use the offline activation.
Click on the related link (in the LCweb Dashboard) and fill in the form with the requested data: the offline token can be found following the steps listed above.
The add-on is based on data exchanges between servers: Site Keys are the basis to authenticate calls coming from third-party systems and ensure security. Each site key can be disabled or renamed. They are required in order to use incoming webhooks and the Zapier integration.
Since the add-on acts totally under the hood autonomously performing operations, is strongly suggested to enable the logs system in order to have a trace of actions performed and their response.
What is a webhook? Is simply an URL you can call through a third-party system to perform actions. In this case, the add-on dynamically generates URLs to let you create/update/delete users or also retrieve users data.
In order to use this system is mandatory to have basic knowledge of how HTTP calls works.
In the following sub-chapters you will understand how to deal with each add-on function relatd to them.
Is mandatory to use site keys in order to sign incoming calls.
The engine users WordPress REST functions to create the endpoints and give responses in JSON format. You will find an example of returned data in case of successfull call (HTTP status 200) in each sub-chapter, while this is an error response sample (HTTP status 40x) related to missing site key:
{
"code": "rest_missing_callback_param",
"message": "Missing parameter(s): site_key",
"data": {
"status": 400,
"params": [
"site_key"
]
}
}
Once created, you can copy the webhook URL and toggle them directly in the interface
{
"id": "965",
"username": "demo_user",
"categories": [
"9",
"18"
],
"tel": "454243"
}
Unless the categories field is involved in the data assignment wizard, the new user will be assigned to the "Default category for registered users" defined in PrivateContent settings
Using a parameter to assign the categories, it must be an array composed by user category IDs.
{
"success": true,
"message": "User successfully created!",
"user_id": 966
}
Multiple-option or numeric fields have got specific options to manipulate the user values.
Is possible to add/remove specific values for multi-options (eg. assigning a new user category). Is possible to increase/decrease numeric ones by a specific amount (eg. create a counter and increase the number by 1)
{
"success": true,
"message": "User successfully updated!",
"user_id": 966
}
{
"success": true,
"message": "User successfully deleted!",
}
What is a REST call? Without going too deep into technicisms, this is the standard to share data between systems.
Essentially your website will perform an HTTP call to a defined endopoint URL, deesigned to receive and elaboarte the data.
This system performs REST calls whenever PrivateContent users perform targeted actions and send targeted user data to the remote endpoint.
In this video:
Once created, you can toggle the REST Calls or also test the endpoint sending out demo data
This system updates/manipulate user's data after a targeted action related to him has been performed.
In this video:
The add-on enables the official, native, integration with Zapier.
In other words, you will be able to get user data or create/update/delete user after a zap has been executed or trigger a zap once a PrivateContent user performs targeted actions.
The first step is to control the "Enable Zapier endpoints?" toggle in the PrivateContent settings > Data Bridge tab.
In order to use this system, you must join the PrivateContent integration on Zapier by reaching this link:
https://zapier.com/developer/public-invite/191372/0033ee98f203af4df716e4aac61988a1/
Once connected, move to the "configure" step to see the available fields (related to your website) to create the user. In case you create new fields, you must edit the zap and perform again this step in order to re-fetch the available fields.
In case of user update, deletion or if you want to retrieve user data you will be prompted to specify which field to match the user by (ID, username, e-mail) and to specify the matching value
The add-on is 100% multilanguage. If a translation of your language has been created, WordPress will automatically switch between languages
If you have WPML + String Translation add-on or Polylang, you can simply scan the plugin and translate strings via its UI.
Otherwise: go in the plugin folder, you'll find a folder called "languages".
Inside you'll find the default.pot file. It contains english strings to be translated.
If you want to create or customize your language translation, follow these steps:
If you create new translations, please get in touch at [email protected] sending your .PO and .MO files.
Otherwise they will be lost in next updates. Thanks!