- most prof states shoud be ok

- redirection partner page creation
- user ids on checks states
- reset cgv
- restrict prof profil page
This commit is contained in:
asus
2024-03-20 00:26:39 +01:00
parent 61063cabd9
commit 0127d8db4c
6 changed files with 96 additions and 244 deletions

View File

@@ -38,6 +38,9 @@ if (!defined('ABSPATH')) {
*
* [/] numero de carte ('numero_de_la_carte') -> ok 1/1 : [1: after payment & card is 'commande' - ok]
*
* [ ] cgv
*
*
*/
@@ -315,9 +318,8 @@ function set_payment_nothing_CIPF($user_id = null) {
/*
* numero de carte
*
*/
function set_card_number_CIPF($user_id = null) {
@@ -336,4 +338,23 @@ function set_card_number_CIPF($user_id = null) {
/*
* cgv
*
*/
function reset_acf_cgv_CIPF($user_id = null) {
PLGNTLS_class::debug_infos();
$acf_cgv = PLGNTLS_class::ACF_PROF_CGV;
if (is_null($user_id)) {
$user_id = get_current_user_id();
}
$acf_id = 'user_'.$user_id;
update_field($acf_cgv['_name'], array(""), $acf_id);
}
?>