updated plugin Menu Icons
version 0.12.4
This commit is contained in:
@ -51,11 +51,11 @@ final class Loader {
|
||||
'uninstall_feedback',
|
||||
'licenser',
|
||||
'endpoint',
|
||||
'notification',
|
||||
'logger',
|
||||
'translate',
|
||||
'review',
|
||||
'recommendation',
|
||||
'notification',
|
||||
|
||||
];
|
||||
|
||||
@ -75,6 +75,28 @@ final class Loader {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get cache token used in API requests.
|
||||
*
|
||||
* @return string Cache token.
|
||||
*/
|
||||
public static function get_cache_token() {
|
||||
$cache_token = get_transient( 'themeisle_sdk_cache_token' );
|
||||
if ( false === $cache_token ) {
|
||||
$cache_token = wp_generate_password( 6, false );
|
||||
set_transient( $cache_token, WEEK_IN_SECONDS );
|
||||
}
|
||||
|
||||
return $cache_token;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear cache token.
|
||||
*/
|
||||
public static function clear_cache_token() {
|
||||
delete_transient( 'themeisle_sdk_cache_token' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Register product into SDK.
|
||||
*
|
||||
|
Reference in New Issue
Block a user