- 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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user