- updated all occurences of Plgntls:: constantes for Cipf:: const
- update menu to use the new methods
This commit is contained in:
@@ -131,7 +131,7 @@ function set_acf_state_CIPF($acf_field, $state_name, $acf_id) {
|
||||
*/
|
||||
function is_account_state_CIPF($state_name, $user_id = null) {
|
||||
Plgntls::debug_infos();
|
||||
$acf_account_state = Plgntls::ACF_ACCOUNT_STATE;
|
||||
$acf_account_state = Cipf::ACF_ACCOUNT_STATE;
|
||||
if (is_null($user_id)) {
|
||||
$user_id = get_current_user_id();
|
||||
}
|
||||
@@ -178,7 +178,7 @@ function is_account_waiting_transfert_CIPF($user_id = null) {
|
||||
*/
|
||||
function set_account_state_CIPF($state_name, $user_id = null) {
|
||||
Plgntls::debug_infos();
|
||||
$acf_account_state = Plgntls::ACF_ACCOUNT_STATE;
|
||||
$acf_account_state = Cipf::ACF_ACCOUNT_STATE;
|
||||
if (is_null($user_id)) {
|
||||
$user_id = get_current_user_id();
|
||||
}
|
||||
@@ -223,7 +223,7 @@ function set_account_expired_CIPF($user_id = null) {
|
||||
*/
|
||||
function is_card_state_CIPF($state, $user_id = null) {
|
||||
Plgntls::debug_infos();
|
||||
$acf_card_state = Plgntls::ACF_CARD_STATE;
|
||||
$acf_card_state = Cipf::ACF_CARD_STATE;
|
||||
if (is_null($user_id)) {
|
||||
$user_id = get_current_user_id();
|
||||
}
|
||||
@@ -243,7 +243,7 @@ function is_card_renew_CIPF($user_id = null) {
|
||||
*/
|
||||
function set_card_state_CIPF($state, $user_id = null) {
|
||||
Plgntls::debug_infos();
|
||||
$acf_card_state = Plgntls::ACF_CARD_STATE;
|
||||
$acf_card_state = Cipf::ACF_CARD_STATE;
|
||||
if (is_null($user_id)) {
|
||||
$user_id = get_current_user_id();
|
||||
}
|
||||
@@ -272,7 +272,7 @@ function set_card_renew_CIPF($user_id = null) {
|
||||
*/
|
||||
function is_page_state_CIPF($state, $post_id = null) {
|
||||
Plgntls::debug_infos();
|
||||
$acf_page_state = Plgntls::ACF_PAGE_STATE;
|
||||
$acf_page_state = Cipf::ACF_PAGE_STATE;
|
||||
if (is_null($post_id)) {
|
||||
$post_id = get_the_ID();
|
||||
}
|
||||
@@ -292,7 +292,7 @@ function is_page_draft_CIPF($post_id = null) {
|
||||
*/
|
||||
function set_page_state_CIPF($state, $post_id = null) {
|
||||
Plgntls::debug_infos();
|
||||
$acf_page_state = Plgntls::ACF_PAGE_STATE;
|
||||
$acf_page_state = Cipf::ACF_PAGE_STATE;
|
||||
if (is_null($post_id)) {
|
||||
$post_id = get_the_ID();
|
||||
}
|
||||
@@ -321,7 +321,7 @@ function set_page_draft_CIPF($post_id = null) {
|
||||
*/
|
||||
function is_card_method_CIPF($state, $user_id = null) {
|
||||
Plgntls::debug_infos();
|
||||
$acf_card_payment_method = Plgntls::ACF_CARD_PAYMENT_METHOD;
|
||||
$acf_card_payment_method = Cipf::ACF_CARD_PAYMENT_METHOD;
|
||||
if (is_null($user_id)) {
|
||||
$user_id = get_current_user_id();
|
||||
}
|
||||
@@ -354,7 +354,7 @@ function is_payment_method_transfert_CIPF($user_id = null) {
|
||||
*/
|
||||
function is_payment_state_CIPF($type, $user_id = null) {
|
||||
Plgntls::debug_infos();
|
||||
$acf_card_payment_state = Plgntls::ACF_CARD_PAYMENT_STATE;
|
||||
$acf_card_payment_state = Cipf::ACF_CARD_PAYMENT_STATE;
|
||||
if (is_null($user_id)) {
|
||||
$user_id = get_current_user_id();
|
||||
}
|
||||
@@ -382,7 +382,7 @@ function is_payment_nothing_CIPF($user_id = null) {
|
||||
*/
|
||||
function set_payment_state_CIPF($type, $user_id = null) {
|
||||
Plgntls::debug_infos();
|
||||
$acf_card_payment_state = Plgntls::ACF_CARD_PAYMENT_STATE;
|
||||
$acf_card_payment_state = Cipf::ACF_CARD_PAYMENT_STATE;
|
||||
if (is_null($user_id)) {
|
||||
$user_id = get_current_user_id();
|
||||
}
|
||||
@@ -416,7 +416,7 @@ function set_payment_nothing_CIPF($user_id = null) {
|
||||
*/
|
||||
function set_card_number_CIPF($user_id = null) {
|
||||
Plgntls::debug_infos();
|
||||
$acf_card_number = Plgntls::ACF_CARD_NUMBER;
|
||||
$acf_card_number = Cipf::ACF_CARD_NUMBER;
|
||||
|
||||
if (is_null($user_id)) {
|
||||
$user_id = get_current_user_id();
|
||||
@@ -438,7 +438,7 @@ function set_card_number_CIPF($user_id = null) {
|
||||
*/
|
||||
function reset_acf_cgv_CIPF($user_id = null) {
|
||||
Plgntls::debug_infos();
|
||||
$acf_cgv = Plgntls::ACF_PROF_CGV;
|
||||
$acf_cgv = Cipf::ACF_PROF_CGV;
|
||||
|
||||
if (is_null($user_id)) {
|
||||
$user_id = get_current_user_id();
|
||||
@@ -457,7 +457,7 @@ function reset_acf_cgv_CIPF($user_id = null) {
|
||||
*/
|
||||
function is_transfert_success_CIPF($user_id = null) {
|
||||
Plgntls::debug_infos();
|
||||
$acf_transfert_state = Plgntls::ACF_TRANSFERT_STATE;
|
||||
$acf_transfert_state = Cipf::ACF_TRANSFERT_STATE;
|
||||
|
||||
if (is_null($user_id)) {
|
||||
$user_id = get_current_user_id();
|
||||
@@ -483,7 +483,7 @@ function is_transfert_success_CIPF($user_id = null) {
|
||||
}
|
||||
function reset_acf_transfert_CIPF($user_id = null) {
|
||||
Plgntls::debug_infos();
|
||||
$acf_transfert_state = Plgntls::ACF_TRANSFERT_STATE;
|
||||
$acf_transfert_state = Cipf::ACF_TRANSFERT_STATE;
|
||||
|
||||
if (is_null($user_id)) {
|
||||
$user_id = get_current_user_id();
|
||||
|
||||
Reference in New Issue
Block a user