PluginProbe
YayMail – WooCommerce Email Customizer / 4.4.5
YayMail – WooCommerce Email Customizer v4.4.5
4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 trunk 1.9.6 2.1.4 2.1.5 3.2.2 3.2.6 3.2.7.1 3.2.8.1 3.2.9 3.3 3.3.1 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4 3.4.1 All 57 releases
← All changes | src/Utils/Helpers.php +5 -11 4.4.2 → 4.4.5 View file →
@@ -481,18 +481,12 @@
481 481 admin_url( 'admin.php' )
482 482 );
483 483 }
484 484
485 - public static function is_yaymail_lite_and_yay_wp_pro_active() {
486 - $is_yaymail_active = function_exists( 'is_plugin_active' ) && is_plugin_active( 'yaymail/yaymail.php' );
487 - $is_yay_wp_pro_active = function_exists( 'YayMail\wp_mail_init' ) && class_exists( 'YaymailWpPluginAdapter', false ) && method_exists( 'YaymailWpPluginAdapter', 'is_licensed' );
488 - return $is_yaymail_active && $is_yay_wp_pro_active;
489 - }
490 -
491 485 public static function get_plugin_work_info() {
492 486 $plugin_work = [
493 487 'yaymail' => false,
494 - 'yay-wp-email-customizer' => false,
488 + 'yaymagic-email-builder' => false,
495 489 ];
496 490
497 491 if ( function_exists( '\YayMail\init' ) && function_exists( 'WC' ) ) {
498 492 if ( class_exists( 'YaymailPluginAdapter', false ) && method_exists( 'YaymailPluginAdapter', 'is_licensed' ) ) {
@@ -503,11 +497,11 @@
503 497 }
504 498
505 499 if ( function_exists( '\YayMail\wp_mail_init' ) ) {
506 500 if ( class_exists( 'YaymailWpPluginAdapter', false ) && method_exists( 'YaymailWpPluginAdapter', 'is_licensed' ) ) {
507 - $plugin_work['yay-wp-email-customizer'] = \YaymailWpPluginAdapter::is_licensed();
501 + $plugin_work['yaymagic-email-builder'] = \YaymailWpPluginAdapter::is_licensed();
508 502 } else {
509 - $plugin_work['yay-wp-email-customizer'] = true;
503 + $plugin_work['yaymagic-email-builder'] = true;
510 504 }
511 505 }
512 506
513 507 return $plugin_work;
@@ -513,13 +507,13 @@
513 507 return $plugin_work;
514 508 }
515 509
516 510 public static function get_plugin_path() {
517 - return self::is_yaymail_lite_and_yay_wp_pro_active() ? YAYMAIL_WP_PLUGIN_PATH : YAYMAIL_PLUGIN_PATH;
511 + return \YayMail\Platform\PlatformRegistry::host_platform()->plugin_path();
518 512 }
519 513
520 514 public static function get_plugin_url() {
521 - return self::is_yaymail_lite_and_yay_wp_pro_active() ? YAYMAIL_WP_PLUGIN_URL : YAYMAIL_PLUGIN_URL;
515 + return \YayMail\Platform\PlatformRegistry::host_platform()->plugin_url();
522 516 }
523 517 public static function scope_css_block( $css, $scope_selector ) {
524 518 $result = '';
525 519 $length = strlen( $css );