PluginProbe
Elementor Website Builder – more than just a page builder / 3.35.7
Elementor Website Builder – more than just a page builder v3.35.7
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | core/admin/admin-notices.php +27 -75 4.2.43.35.7 View file →
@@ -544,9 +544,9 @@
544 544 if ( $one_subscription ) {
545 545 $learn_more_url = 'https://go.elementor.com/acc-plg-learn-more-one';
546 546
547 547 if ( ! $is_installed ) {
548 - $description = esc_html__( 'Make sure your site has an accessibility statement page. Install Web Accessibility, included in ONE, to create it in a few clicks.', 'elementor' );
548 + $description = esc_html__( 'Make sure your site has an accessibility statement page. Install Ally, included in ONE, to create it in a few clicks.', 'elementor' );
549 549 $button_text = esc_html__( 'Install now', 'elementor' );
550 550 $button_url = $this->get_plugin_button_install_url( $plugin_slug );
551 551 $campaign_data = [
552 552 'name' => 'elementor_ea11y_campaign',
@@ -554,9 +554,9 @@
554 554 'source' => 'wp-pages-one-install',
555 555 'medium' => 'wp-dash-one',
556 556 ];
557 557 } elseif ( ! $is_active ) {
558 - $description = esc_html__( 'Your ONE subscription includes Web Accessibility. Activate it to create your accessibility statement page quickly.', 'elementor' );
558 + $description = esc_html__( 'Your ONE subscription includes Ally. Activate it to create your accessibility statement page quickly.', 'elementor' );
559 559 $button_text = esc_html__( 'Activate now', 'elementor' );
560 560 $button_url = $this->get_plugin_button_activate_url( $plugin_file_path );
561 561 $campaign_data = [
562 562 'name' => 'elementor_ea11y_campaign',
@@ -565,9 +565,9 @@
565 565 'medium' => 'wp-dash-one',
566 566 ];
567 567 }
568 568 } else {
569 - $description = esc_html__( "Create a more inclusive site experience for all your visitors. With Web Accessibility, it's easy to add your statement page in just a few clicks.", 'elementor' );
569 + $description = esc_html__( "Create a more inclusive site experience for all your visitors. With Ally, it's easy to add your statement page in just a few clicks.", 'elementor' );
570 570 $learn_more_url = 'https://go.elementor.com/acc-plg-learn-more';
571 571
572 572 if ( ! $is_installed ) {
573 573 $button_text = esc_html__( 'Install now', 'elementor' );
@@ -646,51 +646,31 @@
646 646 if ( $is_woocommerce ) {
647 647 $title = esc_html__( 'Improve transactional email deliverability', 'elementor' );
648 648
649 649 if ( ! $is_installed ) {
650 - $description = esc_html__( 'Use Email Deliverability to ensure store emails like purchase confirmations and shipping updates reach the inbox every time. Included in your ONE subscription.', 'elementor' );
650 + $description = esc_html__( 'Use Site Mailer to ensure store emails like purchase confirmations and shipping updates reach the inbox every time. Included in your ONE subscription.', 'elementor' );
651 651 $button_text = esc_html__( 'Install now', 'elementor' );
652 652 $button_url = $this->get_plugin_button_install_url( $plugin_slug );
653 - $campaign_data = [
654 - 'name' => 'elementor_site_mailer_campaign',
655 - 'campaign' => 'sm-plg-one',
656 - 'source' => 'sm-core-woo-one-install',
657 - 'medium' => 'wp-dash',
658 - ];
653 + $source = 'sm-core-woo-one-install';
659 654 } elseif ( ! $is_active ) {
660 - $description = esc_html__( 'Email Deliverability is installed and included in your ONE subscription. Activate it to ensure store emails like purchase confirmations and shipping updates reach the inbox every time.', 'elementor' );
655 + $description = esc_html__( 'Site Mailer is installed and included in your ONE subscription. Activate it to ensure store emails like purchase confirmations and shipping updates reach the inbox every time.', 'elementor' );
661 656 $button_text = esc_html__( 'Activate now', 'elementor' );
662 657 $button_url = $this->get_plugin_button_activate_url( $plugin_file_path );
663 - $campaign_data = [
664 - 'name' => 'elementor_site_mailer_campaign',
665 - 'campaign' => 'sm-plg-one',
666 - 'source' => 'sm-core-woo-one-activate',
667 - 'medium' => 'wp-dash',
668 - ];
658 + $source = 'sm-core-woo-one-activate';
669 659 }
670 660 } else {
671 661 $title = esc_html__( 'Keep your form emails out of the spam folder', 'elementor' );
672 662
673 663 if ( ! $is_installed ) {
674 - $description = esc_html__( 'Use Email Deliverability to ensure emails reach the inbox and track delivery with built-in logs. Included in your ONE subscription.', 'elementor' );
664 + $description = esc_html__( 'Use Site Mailer to ensure emails reach the inbox and track delivery with built-in logs. Included in your ONE subscription.', 'elementor' );
675 665 $button_text = esc_html__( 'Install now', 'elementor' );
676 666 $button_url = $this->get_plugin_button_install_url( $plugin_slug );
677 - $campaign_data = [
678 - 'name' => 'elementor_site_mailer_campaign',
679 - 'campaign' => 'sm-plg-one',
680 - 'source' => 'sm-core-form-one-install',
681 - 'medium' => 'wp-dash',
682 - ];
667 + $source = 'sm-core-form-one-install';
683 668 } elseif ( ! $is_active ) {
684 - $description = esc_html__( 'Use Email Deliverability to ensure emails reach the inbox and track delivery with built-in logs. Email Deliverability is included in your ONE subscription. Activate it to continue.', 'elementor' );
669 + $description = esc_html__( 'Use Site Mailer to ensure emails reach the inbox and track delivery with built-in logs. Site Mailer is included in your ONE subscription. Activate it to continue.', 'elementor' );
685 670 $button_text = esc_html__( 'Activate now', 'elementor' );
686 671 $button_url = $this->get_plugin_button_activate_url( $plugin_file_path );
687 - $campaign_data = [
688 - 'name' => 'elementor_site_mailer_campaign',
689 - 'campaign' => 'sm-plg-one',
690 - 'source' => 'sm-core-form-one-activate',
691 - 'medium' => 'wp-dash',
692 - ];
672 + $source = 'sm-core-form-one-activate';
693 673 }
694 674 }
695 675 // phpcs:ignore Universal.ControlStructures.DisallowLonelyIf.Found
696 676 } else {
@@ -695,51 +675,31 @@
695 675 // phpcs:ignore Universal.ControlStructures.DisallowLonelyIf.Found
696 676 } else {
697 677 if ( $is_woocommerce ) {
698 678 $title = esc_html__( 'Improve Transactional Email Deliverability', 'elementor' );
699 - $description = esc_html__( "Use Elementor's Email Deliverability to ensure your store emails like purchase confirmations, shipping updates and more are reliably delivered.", 'elementor' );
679 + $description = esc_html__( "Use Elementor's Site Mailer to ensure your store emails like purchase confirmations, shipping updates and more are reliably delivered.", 'elementor' );
700 680
701 681 if ( ! $is_installed ) {
702 682 $button_text = esc_html__( 'Install now', 'elementor' );
703 683 $button_url = $this->get_plugin_button_install_url( $plugin_slug );
704 - $campaign_data = [
705 - 'name' => 'elementor_site_mailer_campaign',
706 - 'campaign' => 'sm-plg',
707 - 'source' => 'sm-core-woo-install',
708 - 'medium' => 'wp-dash',
709 - ];
684 + $source = 'sm-core-woo-install';
710 685 } elseif ( ! $is_active ) {
711 686 $button_text = esc_html__( 'Activate now', 'elementor' );
712 687 $button_url = $this->get_plugin_button_activate_url( $plugin_file_path );
713 - $campaign_data = [
714 - 'name' => 'elementor_site_mailer_campaign',
715 - 'campaign' => 'sm-plg',
716 - 'source' => 'sm-core-woo-activate',
717 - 'medium' => 'wp-dash',
718 - ];
688 + $source = 'sm-core-woo-activate';
719 689 }
720 690 } else {
721 691 $title = esc_html__( 'Ensure your form emails avoid the spam folder!', 'elementor' );
722 - $description = esc_html__( 'Use Email Deliverability for improved email deliverability, detailed email logs, and an easy setup.', 'elementor' );
692 + $description = esc_html__( 'Use Site Mailer for improved email deliverability, detailed email logs, and an easy setup.', 'elementor' );
723 693
724 694 if ( ! $is_installed ) {
725 695 $button_text = esc_html__( 'Install now', 'elementor' );
726 696 $button_url = $this->get_plugin_button_install_url( $plugin_slug );
727 - $campaign_data = [
728 - 'name' => 'elementor_site_mailer_campaign',
729 - 'campaign' => 'sm-plg',
730 - 'source' => 'sm-core-form-install',
731 - 'medium' => 'wp-dash',
732 - ];
697 + $source = 'sm-core-form-install';
733 698 } elseif ( ! $is_active ) {
734 699 $button_text = esc_html__( 'Activate now', 'elementor' );
735 700 $button_url = $this->get_plugin_button_activate_url( $plugin_file_path );
736 - $campaign_data = [
737 - 'name' => 'elementor_site_mailer_campaign',
738 - 'campaign' => 'sm-plg',
739 - 'source' => 'sm-core-form-activate',
740 - 'medium' => 'wp-dash',
741 - ];
701 + $source = 'sm-core-form-activate';
742 702 }
743 703 }
744 704 }
745 705
@@ -753,14 +713,12 @@
753 713 'id' => $notice_id,
754 714 'type' => 'cta',
755 715 'button' => [
756 716 'text' => $button_text,
757 - 'url' => self::add_plg_campaign_data( $button_url, $campaign_data ),
717 + 'url' => $button_url,
758 718 'type' => 'cta',
759 719 'data' => [
760 - 'campaign' => $campaign_data['campaign'],
761 - 'source' => $campaign_data['source'],
762 - 'medium' => $campaign_data['medium'],
720 + 'source' => $source,
763 721 ],
764 722 ],
765 723 'button_secondary' => [
766 724 'text' => esc_html__( 'Learn more', 'elementor' ),
@@ -892,19 +850,19 @@
892 850 $button_text = esc_html__( 'Install now', 'elementor' );
893 851 $button_url = $this->get_plugin_button_install_url( $plugin_slug );
894 852 $campaign_data = [
895 853 'name' => 'elementor_image_optimization_campaign',
896 - 'campaign' => 'io-plg-one',
854 + 'campaign' => 'image-optimization-plg-wp-media-library-one-install',
897 855 'source' => 'io-wp-media-library-one-install',
898 856 'medium' => 'wp-dash-one',
899 857 ];
900 858 } elseif ( ! $is_active ) {
901 - $description = esc_html__( 'Your ONE subscription includes Image Optimization. Activate it to optimize images and improve site performance.', 'elementor' );
859 + $description = esc_html__( 'Your ONE subscription includes Image Optimizer. Activate it to optimize images and improve site performance.', 'elementor' );
902 860 $button_text = esc_html__( 'Activate now', 'elementor' );
903 861 $button_url = $this->get_plugin_button_activate_url( $plugin_file_path );
904 862 $campaign_data = [
905 863 'name' => 'elementor_image_optimization_campaign',
906 - 'campaign' => 'io-plg-one',
864 + 'campaign' => 'image-optimization-plg-wp-media-library-one-activate',
907 865 'source' => 'io-wp-media-library-one-activate',
908 866 'medium' => 'wp-dash-one',
909 867 ];
910 868 }
@@ -915,9 +873,9 @@
915 873 $button_text = esc_html__( 'Install now', 'elementor' );
916 874 $button_url = $this->get_plugin_button_install_url( $plugin_slug );
917 875 $campaign_data = [
918 876 'name' => 'elementor_image_optimization_campaign',
919 - 'campaign' => 'io-plg',
877 + 'campaign' => 'image-optimization-plg-wp-media-library-install',
920 878 'source' => 'io-wp-media-library-install',
921 879 'medium' => 'wp-dash',
922 880 ];
923 881 } elseif ( ! $is_active ) {
@@ -924,9 +882,9 @@
924 882 $button_text = esc_html__( 'Activate now', 'elementor' );
925 883 $button_url = $this->get_plugin_button_activate_url( $plugin_file_path );
926 884 $campaign_data = [
927 885 'name' => 'elementor_image_optimization_campaign',
928 - 'campaign' => 'io-plg',
886 + 'campaign' => 'image-optimization-plg-wp-media-library-activate',
929 887 'source' => 'io-wp-media-library-activate',
930 888 'medium' => 'wp-dash',
931 889 ];
932 890 }
@@ -932,20 +890,18 @@
932 890 }
933 891 }
934 892
935 893 $options = [
936 - 'title' => esc_html__( 'Speed up your website with Image Optimization', 'elementor' ),
894 + 'title' => esc_html__( 'Speed up your website with Image Optimizer', 'elementor' ),
937 895 'description' => $description,
938 896 'id' => $notice_id,
939 897 'type' => 'cta',
940 898 'button' => [
941 899 'text' => $button_text,
942 - 'url' => self::add_plg_campaign_data( $button_url, $campaign_data ),
900 + 'url' => $button_url,
943 901 'type' => 'cta',
944 902 'data' => [
945 - 'campaign' => $campaign_data['campaign'],
946 903 'source' => $campaign_data['source'],
947 - 'medium' => $campaign_data['medium'],
948 904 ],
949 905 ],
950 906 ];
951 907
@@ -982,12 +938,9 @@
982 938 if ( $options['type'] ) {
983 939 $notice_classes[] = 'e-notice--' . $options['type'];
984 940 }
985 941
986 - $wrapper_attributes = [
987 - 'role' => 'region',
988 - 'aria-label' => esc_html__( 'Elementor notice', 'elementor' ),
989 - ];
942 + $wrapper_attributes = [];
990 943
991 944 if ( $options['dismissible'] ) {
992 945 $label = esc_html__( 'Dismiss this notice.', 'elementor' );
993 946 $notice_classes[] = 'e-notice--dismissible';
@@ -1142,9 +1095,8 @@
1142 1095 */
1143 1096 public function __construct() {
1144 1097 add_action( 'admin_notices', [ $this, 'admin_notices' ], 20 );
1145 1098 add_action( 'admin_action_install-plugin', [ $this, 'maybe_log_campaign' ] );
1146 - add_action( 'admin_action_activate', [ $this, 'maybe_log_campaign' ] );
1147 1099 }
1148 1100
1149 1101 /**
1150 1102 * Get module name.