| @@ -54,8 +54,9 @@ | ||
| 54 | 54 | 'notification', |
| 55 | 55 | 'logger', |
| 56 | 56 | 'translate', |
| 57 | 57 | 'review', |
| 58 | + 'recommendation', | |
| 58 | 59 | |
| 59 | 60 | ]; |
| 60 | 61 | |
| 61 | 62 | /** |
| @@ -82,9 +83,9 @@ | ||
| 82 | 83 | * @return Loader The singleton object. |
| 83 | 84 | */ |
| 84 | 85 | public static function add_product( $base_file ) { |
| 85 | 86 | |
| 86 | - if ( ! is_readable( $base_file ) ) { | |
| 87 | + if ( ! is_file( $base_file ) ) { | |
| 87 | 88 | return self::$instance; |
| 88 | 89 | } |
| 89 | 90 | $product = new Product( $base_file ); |
| 90 | 91 | |
| @@ -112,6 +113,14 @@ | ||
| 112 | 113 | public static function get_products() { |
| 113 | 114 | return self::$products; |
| 114 | 115 | } |
| 115 | 116 | |
| 117 | + /** | |
| 118 | + * Get the version of the SDK. | |
| 119 | + * | |
| 120 | + * @return string The version. | |
| 121 | + */ | |
| 122 | + public static function get_version() { | |
| 123 | + return self::$version; | |
| 124 | + } | |
| 116 | 125 | |
| 117 | 126 | } |