OPTION_NAME
OPTION_NAME ='real_utils-transients'
Handle site-wide transients for a specific plugin. It is static-only access and set.
Do not use this handler for other data than timestamps and booleans!
All your used transient keys should be in constants so they are readable in code and as short as possible in database.
TRANSIENT_REDIRECT_AFTER_ACTIVATE ='raa'
Note: E.g WPML does creation of the settings `_icl_sitepress_settings` option when entering the plugins page again. Real Cookie Banners' taxonomies are not registered to the ICL cache if we do a redirect at plugin activation time.
Possible values:
false
= Default, no redirection registered, yet (backwards-compatibility, instead of another number)1
= Plugin got activated, we can redirecttrue
= Redirection done for this plugin (backwards-compatibility, instead of another number)set(\DevOwl\RealUtils\AbstractInitiator $initiator,string $key,mixed $value): boolean
Set a value for a given plugin.
\DevOwl\RealUtils\AbstractInitiator | $initiator | |
string | $key | |
mixed | $value |
get(\DevOwl\RealUtils\AbstractInitiator|string $initiator,string $key,mixed $default = null)
Get a value for a given plugin.
\DevOwl\RealUtils\AbstractInitiator|string | $initiator | |
string | $key | |
mixed | $default |