Allows users to save custom fields created in Azure to users in WP - #20
Allows users to save custom fields created in Azure to users in WP#20peterspliid wants to merge 2 commits into
Conversation
…ntication endpoint
|
The new commit is needed if I have a Wordpress installation in different languages, and want the user to view the authentication site in the same language as Wordpress. With the committed changes, I have added the following to my functions file: where $_COOKIE['npa_lang'] is the language identifier. |
|
@peterspliid, I just started using this AD B2C Wordpress plugin and I like your changes for updating user meta fields from the AD B2C custom attributes. |
|
@ArthurDumas Sorry for the late response. Yes you are correct. You might want to map fields from AD B2C to your custom wordpress fields, or process or verify the data before inserting it. It is generally good practice to use actions or filters when it comes to custom data |
For example if I want a field called company, I first create the field in Azure, then I add the following code to my Wordpress plugin/functions.php file:
This will save the information the user entered in the company field to the user meta field 'company' in Wordpress