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