wip handle custom form submit

This commit is contained in:
asus
2024-03-14 01:18:31 +01:00
parent 12de8ee12f
commit 2f4a5bb9ef
16 changed files with 485 additions and 145 deletions

View File

@@ -23,7 +23,7 @@ function handle_prof_is_activ_CIPF($author_id) {
*
*/
$is_activ = get_field($acf_prof_is_activ['_name'], $acf_id);
if ($is_activ === 'Actif')
if ($is_activ === $acf_prof_is_activ['activ'])
return;
@@ -81,9 +81,11 @@ function show_prof_paiement_messages_CIPF($user_id) {
*
*/
$is_activ = get_field($acf_prof_is_activ['_name'], $acf_id);
if (is_null($is_activ) || empty($is_activ))
if (is_null($is_activ))
return;
if ($is_activ === 'Inactif')
if (empty($is_activ))
return;
if ($is_activ === $acf_prof_is_activ['activ'])
return;
$cipf_prof_payement = new PLGNTLS_class();