| @@ -45,24 +45,19 @@ | ||
| 45 | 45 | * |
| 46 | 46 | * @var array The modules which SDK will be using. |
| 47 | 47 | */ |
| 48 | 48 | private static $available_modules = [ |
| 49 | - 'script_loader', | |
| 50 | 49 | 'dashboard_widget', |
| 51 | 50 | 'rollback', |
| 52 | 51 | 'uninstall_feedback', |
| 53 | 52 | 'licenser', |
| 53 | + 'endpoint', | |
| 54 | + 'notification', | |
| 54 | 55 | 'logger', |
| 55 | 56 | 'translate', |
| 56 | 57 | 'review', |
| 57 | 58 | 'recommendation', |
| 58 | - 'notification', | |
| 59 | - 'promotions', | |
| 60 | - 'welcome', | |
| 61 | - 'compatibilities', | |
| 62 | - 'about_us', | |
| 63 | - 'announcements', | |
| 64 | - 'featured_plugins', | |
| 59 | + | |
| 65 | 60 | ]; |
| 66 | 61 | |
| 67 | 62 | /** |
| 68 | 63 | * Initialize the sdk logic. |
| @@ -80,30 +75,8 @@ | ||
| 80 | 75 | } |
| 81 | 76 | } |
| 82 | 77 | |
| 83 | 78 | /** |
| 84 | - * Get cache token used in API requests. | |
| 85 | - * | |
| 86 | - * @return string Cache token. | |
| 87 | - */ | |
| 88 | - public static function get_cache_token() { | |
| 89 | - $cache_token = get_transient( 'themeisle_sdk_cache_token' ); | |
| 90 | - if ( false === $cache_token ) { | |
| 91 | - $cache_token = wp_generate_password( 6, false ); | |
| 92 | - set_transient( $cache_token, WEEK_IN_SECONDS ); | |
| 93 | - } | |
| 94 | - | |
| 95 | - return $cache_token; | |
| 96 | - } | |
| 97 | - | |
| 98 | - /** | |
| 99 | - * Clear cache token. | |
| 100 | - */ | |
| 101 | - public static function clear_cache_token() { | |
| 102 | - delete_transient( 'themeisle_sdk_cache_token' ); | |
| 103 | - } | |
| 104 | - | |
| 105 | - /** | |
| 106 | 79 | * Register product into SDK. |
| 107 | 80 | * |
| 108 | 81 | * @param string $base_file The product base file. |
| 109 | 82 | * |
| @@ -148,5 +121,6 @@ | ||
| 148 | 121 | */ |
| 149 | 122 | public static function get_version() { |
| 150 | 123 | return self::$version; |
| 151 | 124 | } |
| 125 | + | |
| 152 | 126 | } |