updated plugin Menu Icons version 0.12.4

This commit is contained in:
2020-07-24 14:08:54 +00:00
committed by Gitium
parent 7e9ae89290
commit 4b9aecd896
54 changed files with 10903 additions and 245 deletions

View File

@ -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.
*