| @@ -49,15 +49,15 @@ | ||
| 49 | 49 | 'dashboard_widget', |
| 50 | 50 | 'rollback', |
| 51 | 51 | 'uninstall_feedback', |
| 52 | 52 | 'licenser', |
| 53 | + 'endpoint', | |
| 54 | + 'notification', | |
| 53 | 55 | 'logger', |
| 54 | 56 | 'translate', |
| 55 | 57 | 'review', |
| 56 | 58 | 'recommendation', |
| 57 | - 'notification', | |
| 58 | - 'promotions', | |
| 59 | - 'compatibilities', | |
| 59 | + | |
| 60 | 60 | ]; |
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | 63 | * Initialize the sdk logic. |
| @@ -72,30 +72,8 @@ | ||
| 72 | 72 | } |
| 73 | 73 | } |
| 74 | 74 | self::$available_modules = $modules; |
| 75 | 75 | } |
| 76 | - } | |
| 77 | - | |
| 78 | - /** | |
| 79 | - * Get cache token used in API requests. | |
| 80 | - * | |
| 81 | - * @return string Cache token. | |
| 82 | - */ | |
| 83 | - public static function get_cache_token() { | |
| 84 | - $cache_token = get_transient( 'themeisle_sdk_cache_token' ); | |
| 85 | - if ( false === $cache_token ) { | |
| 86 | - $cache_token = wp_generate_password( 6, false ); | |
| 87 | - set_transient( $cache_token, WEEK_IN_SECONDS ); | |
| 88 | - } | |
| 89 | - | |
| 90 | - return $cache_token; | |
| 91 | - } | |
| 92 | - | |
| 93 | - /** | |
| 94 | - * Clear cache token. | |
| 95 | - */ | |
| 96 | - public static function clear_cache_token() { | |
| 97 | - delete_transient( 'themeisle_sdk_cache_token' ); | |
| 98 | 76 | } |
| 99 | 77 | |
| 100 | 78 | /** |
| 101 | 79 | * Register product into SDK. |