v 0.3.4 states are now handled with specific functions for setting, getting, and adding css

This commit is contained in:
asus
2024-03-19 16:27:38 +01:00
parent db1d16bd91
commit f7c805f22b
5 changed files with 115 additions and 16 deletions

View File

@@ -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');
}