v 0.3.4 states are now handled with specific functions for setting, getting, and adding css
This commit is contained in:
@@ -231,19 +231,19 @@ function is_payment_state_CIPF($user_id = null, $type) {
|
||||
$acf_card_payment_state = PLGNTLS_class::ACF_CARD_PAYMENT_STATE;
|
||||
return is_acf_state_CIPF($user_id, $acf_card_payment_state, $type);
|
||||
}
|
||||
function is_payment_started($user_id = null) {
|
||||
function is_payment_started_CIPF($user_id = null) {
|
||||
PLGNTLS_class::debug_infos();
|
||||
return is_payment_state_CIPF($user_id, 'started');
|
||||
}
|
||||
function is_payment_success($user_id = null) {
|
||||
function is_payment_success_CIPF($user_id = null) {
|
||||
PLGNTLS_class::debug_infos();
|
||||
return is_payment_state_CIPF($user_id, 'success');
|
||||
}
|
||||
function is_payment_failure($user_id = null) {
|
||||
function is_payment_failure_CIPF($user_id = null) {
|
||||
PLGNTLS_class::debug_infos();
|
||||
return is_payment_state_CIPF($user_id, 'failure');
|
||||
}
|
||||
function is_payment_nothing($user_id = null) {
|
||||
function is_payment_nothing_CIPF($user_id = null) {
|
||||
PLGNTLS_class::debug_infos();
|
||||
return is_payment_state_CIPF($user_id, 'nothing');
|
||||
}
|
||||
@@ -255,19 +255,19 @@ function set_payment_state_CIPF($user_id = null, $type) {
|
||||
$acf_card_payment_state = PLGNTLS_class::ACF_CARD_PAYMENT_STATE;
|
||||
set_acf_state_CIPF($user_id, $acf_card_payment_state, $type);
|
||||
}
|
||||
function set_payment_started($user_id = null) {
|
||||
function set_payment_started_CIPF($user_id = null) {
|
||||
PLGNTLS_class::debug_infos();
|
||||
set_payment_state_CIPF($user_id, 'started');
|
||||
}
|
||||
function set_payment_success($user_id = null) {
|
||||
function set_payment_success_CIPF($user_id = null) {
|
||||
PLGNTLS_class::debug_infos();
|
||||
set_payment_state_CIPF($user_id, 'success');
|
||||
}
|
||||
function set_payment_failure($user_id = null) {
|
||||
function set_payment_failure_CIPF($user_id = null) {
|
||||
PLGNTLS_class::debug_infos();
|
||||
set_payment_state_CIPF($user_id, 'failure');
|
||||
}
|
||||
function set_payment_nothing($user_id = null) {
|
||||
function set_payment_nothing_CIPF($user_id = null) {
|
||||
PLGNTLS_class::debug_infos();
|
||||
set_payment_state_CIPF($user_id, 'nothing');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user