wip registration partner role with xootix hook and hiden fields

This commit is contained in:
asus
2024-03-19 07:24:53 +01:00
parent cabee4db30
commit 9cda6f13bd

View File

@@ -10,6 +10,87 @@ if (!defined('ABSPATH')) {
function check_fields_CIPF($fields) {
error_log("--- in check_fields_CIPF");
error_log("fields");
error_log(json_encode($fields));
return $fields;
}
add_filter('xoo_el_register_fields', 'check_fields_CIPF');
/*
{
"xoo_el_reg_fname":{
"field_type":"xoo_el_reg_fname",
"input_type":"text",
"settings":{
"required":"yes",
"label":"",
"cols":"onehalf",
"icon":"far fa-user",
"placeholder":"First Name",
"minlength":"",
"maxlength":"",
"class":"",
"active":"no",
"unique_id":"xoo_el_reg_fname"
},
"priority":"10"
},
"xoo_el_reg_lname":{
"field_type":"xoo_el_reg_lname",
"input_type":"text",
"settings":{
"required":"yes",
"label":"",
"cols":"onehalf",
"icon":"far fa-user",
"placeholder":"Last Name",
"minlength":"",
"maxlength":"",
"class":"",
"active":"no",
"unique_id":"xoo_el_reg_lname"
},
"priority":"20"
},
"xoo_el_reg_username":{
"field_type":"xoo_el_reg_username",
"input_type":"text",
"settings":{
"active":"yes",
"label":"Cr\u00e9er votre identifiant",
"cols":"one",
"icon":"fas fa-user-plus",
"placeholder":"",
"minlength":"3",
"maxlength":"20",
"class":"",
"unique_id":"xoo_el_reg_username",
"required":"yes"
},
"priority":"30"
},
"xoo_el_reg_email":{
"field_type":"xoo_el_reg_email",
"input_type":"email",
"settings":{
"active":"yes",
"required":"yes",
"label":"Votre adresse mail",
"cols":"one",
"icon":"fas fa-at",
"placeholder":"",
"class":"",
"unique_id":"xoo_el_reg_email"
},
"priority":"40"
},"xoo_el_reg_pass":{"field_type":"xoo_el_reg_pass","input_type":"password","settings":{"active":"yes","label":"Cr\u00e9ez votre mot de passe","cols":"one","icon":"fas fa-key","placeholder":"8 caract\u00e8res minimum","minlength":"8","maxlength":"100","password_visibility":"yes","class":"","unique_id":"xoo_el_reg_pass","required":"yes"},"priority":"50"},"xoo_el_reg_pass_again":{"field_type":"xoo_el_reg_pass_again","input_type":"password","settings":{"label":"","cols":"one","icon":"fas fa-key","placeholder":"Confirm Password","password_visibility":"yes","class":"","active":"no","unique_id":"xoo_el_reg_pass_again","required":"yes"},"priority":"60"},"xoo_el_reg_terms":{"field_type":"xoo_el_reg_terms","input_type":"checkbox_single","settings":{"required":"yes","label":"","placeholder":"The Terms and Conditions","cols":"one","checkbox_single":{"yes":{"checked":"","label":"I accept the <a href=\"privacy-policy\" target=\"_blank\"> Terms of Service and Privacy Policy <\/a>","value":"yes","priority":"10"}},"class":"","active":"no","unique_id":"xoo_el_reg_terms"},"priority":"70"}}
*/
function check_if_partner_registration_CIPF() {
PLGNTLS_class::debug_infos();