| 1 |
<?php |
| 2 |
|
| 3 |
namespace YayMail\License; |
| 4 |
|
| 5 |
defined( 'ABSPATH' ) || exit; |
| 6 |
|
| 7 |
/** |
| 8 |
* CorePlugin |
| 9 |
* |
| 10 |
* @package CorePlugin |
| 11 |
*/ |
| 12 |
class CorePlugin { |
| 13 |
|
| 14 |
public static function get( $name ) { |
| 15 |
$data = [ |
| 16 |
'path' => YAYMAIL_PLUGIN_PATH, |
| 17 |
'url' => YAYMAIL_PLUGIN_URL, |
| 18 |
'basename' => YAYMAIL_PLUGIN_BASENAME, |
| 19 |
'version' => YAYMAIL_VERSION, |
| 20 |
'slug' => 'yaymail', |
| 21 |
'link' => 'https://yaycommerce.com/yaymail-woocommerce-email-customizer/', |
| 22 |
'download_id' => '4216', |
| 23 |
]; |
| 24 |
|
| 25 |
if ( isset( $data[ $name ] ) ) { |
| 26 |
return $data[ $name ]; |
| 27 |
} |
| 28 |
return null; |
| 29 |
} |
| 30 |
} |
| 31 |
|