v 0.3.3 partner registration detected with slug using options and without referer

This commit is contained in:
asus
2024-03-18 13:28:02 +01:00
parent 98dfb17bf4
commit 5be80d1566
6 changed files with 52 additions and 30 deletions

View File

@@ -82,6 +82,7 @@ class PLGNTLS_class {
const SLUG_PAYPAL_REDIRECTION_SUCCESS = self::SLUG_PAGE_REDIRECTION;
const SLUG_PAYPAL_REDIRECTION_FAILURE = self::SLUG_PAGE_REDIRECTION;
const SLUG_ADMIN_VALIDATE_PROF = 'admin_activate_prof_cipf'; // for admin_modif_prof.php
const SLUG_PARTNER_REGISTRATION = 'creation-du-compte-partenaire';
// URL
const URL_BASE_REST_ROUTE = 'cipf_plugin/api/v1'; // for routes, in php/paypal/routes.php && php/admin_modif_prof.php
// QUERY
@@ -101,6 +102,9 @@ class PLGNTLS_class {
// SHORTCODES
// OPTIONS
const OPTION_PARTNER_SLUG = ['_name'=>'cipf_partner_slug', 'true'=>'true', 'false'=>'false'];
// OTHER
const CARD_RENEW_PERIOD = 31; // int : number of days before expiration when renew card start to be possible
const CARD_VALIDITY_TIME = '1 year'; // string : time of validity of the card (ex: '1 month' or '1 year' or '60 days')