PluginProbe ʕ •ᴥ•ʔ
Advanced Ads – Ad Manager & AdSense / 2.0.25
Advanced Ads – Ad Manager & AdSense v2.0.25
2.0.25 2.0.24 2.0.23 2.0.22 2.0.21 1.38.0 1.39.0 1.39.1 1.39.2 1.39.3 1.39.4 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.40.0 1.40.1 1.40.2 1.41.0 1.42.0 1.42.1 1.42.2 1.43.0 1.44.0 1.44.1 1.45.0 1.45.1 1.46.0 1.47.0 1.47.1 1.47.2 1.47.3 1.47.4 1.47.5 1.48.0 1.48.1 1.49.0 1.5.0 1.5.0.1 1.5.1 1.5.2 1.5.2.1 1.5.4 1.5.4.1 1.5.5 1.50.0 1.51.0 1.51.1 1.51.2 1.51.3 1.52.0 1.52.1 1.52.2 1.52.3 1.52.4 1.53.0 1.53.1 1.53.2 1.54.0 1.54.1 1.55.0 1.56.0 1.56.1 1.56.2 1.56.3 1.56.4 1.6 1.6.1 1.6.10 1.6.10.1 1.6.10.2 1.6.11 1.6.11.1 1.6.12 1.6.13 1.6.14 1.6.15 1.6.16 1.6.17 1.6.17.1 1.6.17.2 1.6.2 1.6.2.1 1.6.3 1.6.4 1.6.4.1 1.6.5 1.6.6 1.6.6.1 1.6.7 1.6.7.1 1.6.8 1.6.8.1 1.6.8.2 1.6.8.3 1.6.9 1.6.9.1 1.6.9.2 1.6.9.3 1.6.9.4 1.7 1.7.0.1 1.7.0.2 1.7.0.3 1.7.1 1.7.1.1 1.7.1.2 1.7.1.3 1.7.1.4 1.7.1.5 1.7.10 trunk 1.7.11 1.0.1 1.7.12 1.0.2 1.7.13 1.0.3 1.7.14 1.1.0 1.7.15 1.1.1 1.7.16 1.1.2 1.7.17 1.1.3 1.7.18 1.10 1.7.19 1.10.1 1.7.2 1.10.10 1.7.2.1 1.10.11 1.7.20 1.10.12 1.7.21 1.10.2 1.7.22 1.10.3 1.7.23 1.10.4 1.7.24 1.10.5 1.7.25 1.10.6 1.7.3 1.10.7 1.7.4 1.10.8 1.7.4.1 1.10.9 1.7.4.2 1.11 1.7.4.3 1.11.1 1.7.4.4 1.11.2 1.7.4.5 1.12 1.7.5 1.13 1.7.5.1 1.13.1 1.7.6 1.13.2 1.7.7 1.13.3 1.7.8 1.13.4 1.7.9 1.13.5 1.7.9.1 1.13.6 1.7.9.2 1.13.7 1.7.9.3 1.13.8 1.8 1.14 1.8.1 1.14.1 1.8.10 1.14.10 1.8.11 1.14.11 1.8.12 1.14.2 1.8.13 1.14.3 1.8.14 1.14.4 1.8.15 1.14.5 1.8.16 1.14.6 1.8.17 1.14.7 1.8.18 1.14.8 1.8.19 1.14.9 1.8.2 1.15 1.8.20 1.16 1.8.21 1.16.1 1.8.22 1.17 1.8.23 1.17.1 1.8.24 1.17.10 1.8.25 1.17.10-rc.1 1.8.26 1.17.11 1.8.27 1.17.12 1.8.28 1.17.12-rc.1 1.8.29 1.17.2 1.8.3 1.17.3 1.8.30 1.17.4 1.8.4 1.17.5 1.8.5 1.17.6 1.8.6 1.17.7 1.8.7 1.17.8 1.8.8 1.17.9 1.8.9 1.17.9-beta.1 1.9 1.18.0 2.0.0 1.19.0 2.0.1 1.19.1 2.0.10 1.2 2.0.11 1.2.1 2.0.12 1.2.2 2.0.13 1.2.3 2.0.14 1.2.4 2.0.15 1.2.5 2.0.16 1.2.6 2.0.17 1.2.7 2.0.18 1.20.0 2.0.19 1.20.0-rc.1 2.0.2 1.20.0-rc.2 2.0.20 1.20.1 2.0.3 1.20.2 2.0.4 1.20.3 2.0.5 1.21.0 2.0.6 1.21.1 2.0.7 1.22.0 2.0.8 1.22.1 2.0.9 1.22.2 1.23.0 1.23.1 1.23.2 1.24.0 1.24.1 1.24.2 1.25.0 1.25.1 1.26.0 1.27.0 1.28.0 1.29.0 1.29.1 1.3 1.3.1 1.3.10 1.3.11 1.3.12 1.3.13 1.3.14 1.3.15 1.3.16 1.3.17 1.3.18 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.30.0 1.30.1 1.30.2 1.30.2-rc.1 1.30.3 1.30.4 1.30.4-rc.1 1.30.5 1.31.0 1.31.1 1.32.0 1.32.0-rc.1 1.33.0 1.33.1 1.33.2 1.34.0 1.35.0 1.35.1 1.36.0 1.36.1 1.36.2 1.36.3 1.37.0 1.37.1 1.37.2
advanced-ads / admin / includes / notices.php
advanced-ads / admin / includes Last commit date
ad-health-notices.php 4 days ago class-ad-network-ad-unit.php 5 months ago class-ad-network.php 1 year ago class-licenses.php 4 days ago class-notices.php 4 days ago class-overview-widgets.php 4 days ago class-plugins-screen-updates.php 3 months ago notices.php 4 days ago
notices.php
219 lines
1 <?php
2 /**
3 * Array with admin notices
4 *
5 * @package AdvancedAds
6 * @author Advanced Ads <info@wpadvancedads.com>
7 */
8
9 use AdvancedAds\License\License_Utils;
10 use AdvancedAds\Utilities\WordPress;
11
12 if ( ! defined( 'NOTICE_TYPES' ) ) {
13 define(
14 'NOTICE_TYPES',
15 [
16 'info' => 'info',
17 'subscribe' => 'subscribe',
18 'error' => 'plugin_error',
19 'promo' => 'promo',
20 ]
21 );
22 }
23
24 // These add-on names correspond to the names in the class of constants from ADDONS_NON_COMPATIBLE_VERSIONS.
25 $manual_addons = [
26 'advanced-ads-page-peel' => [
27 'title' => 'Advanced Ads Page Peel',
28 'zip' => esc_url( 'https://wpadvancedads.com/wp-content/uploads/advanced-ads-page-peel.zip' ),
29 'link' => esc_url( 'https://wpadvancedads.com/manual/how-to-install-an-add-on/?utm_source=advanced-ads&utm_medium=link&utm_campaign=notice-update-pagepeel-a220' ),
30 ],
31 'advanced-ads-browser-language' => [
32 'title' => 'Advanced Ads Browser Language Visitor Condition',
33 'zip' => esc_url( 'https://wpadvancedads.com/wp-content/uploads/advanced-ads-browser-language.zip' ),
34 'link' => esc_url( 'https://wpadvancedads.com/manual/how-to-install-an-add-on/?utm_source=advanced-ads&utm_medium=link&utm_campaign=notice-update-browserlang-a220' ),
35 ],
36 'slider-ads' => [
37 'title' => 'Advanced Ads Ad Slider',
38 'zip' => esc_url( 'https://wpadvancedads.com/wp-content/uploads/advanced-ads-slider.zip' ),
39 'link' => esc_url( 'https://wpadvancedads.com/manual/how-to-install-an-add-on/?utm_source=advanced-ads&utm_medium=link&utm_campaign=notice-update-adslider-a220' ),
40 ],
41 ];
42
43 $advanced_ads_admin_notices = [
44 // email tutorial.
45 'nl_first_steps' => [
46 'type' => NOTICE_TYPES['subscribe'],
47 'text' => __( 'Thank you for activating <strong>Advanced Ads</strong>. Would you like to receive the first steps via email?', 'advanced-ads' ),
48 'confirm_text' => __( 'Yes, send it', 'advanced-ads' ),
49 'global' => true,
50 ],
51 // free add-ons.
52 'nl_free_addons' => [
53 'type' => NOTICE_TYPES['subscribe'],
54 'text' => __( 'Hey, welcome to Advanced Ads! Join our newsletter and snag <strong>2 free add-ons</strong> plus our email intro course. It’s the perfect way to get started smoothly!', 'advanced-ads' ),
55 'confirm_text' => __( 'Subscribe me now', 'advanced-ads' ),
56 'global' => false,
57 ],
58 // adsense newsletter group.
59 'nl_adsense' => [
60 'type' => NOTICE_TYPES['subscribe'],
61 'text' => __( 'Learn more about how and <strong>how much you can earn with AdSense</strong> and Advanced Ads from my dedicated newsletter.', 'advanced-ads' ),
62 'global' => true,
63 ],
64 // missing license codes.
65 'license_invalid' => [
66 'type' => NOTICE_TYPES['error'],
67 'text' => __( 'One or more license keys for <strong>Advanced Ads add-ons are invalid or missing</strong>.', 'advanced-ads' ) . ' '
68 /* translators: %s is a target URL. */
69 . sprintf( __( 'Please add valid license keys <a href="%s">here</a>.', 'advanced-ads' ), License_Utils::admin_screen_url() ),
70 ],
71 // please review.
72 'review' => [
73 'type' => NOTICE_TYPES['info'],
74 // 'text' => '<img src="' . ADVADS_BASE_URL . 'admin/assets/img/thomas.png" alt="Thomas" width="80" height="115" class="advads-review-image"/>'
75 'text' => '<div style="float: left; font-size: 4em; line-height: 1em; margin-right: 0.5em;">' . WordPress::get_count_ads() . '</div>'
76 . '<div style="float:left;">'
77 . '<p>' . __( '… ads created using <strong>Advanced Ads</strong>.', 'advanced-ads' ) . '</p>'
78 . '<p>' . __( 'Do you find the plugin useful and would like to thank us for updates, fixing bugs and improving your ad setup?', 'advanced-ads' ) . '</p>'
79 . '<p>' .
80 /* translators: this belongs to our message asking the user for a review. You can find a nice equivalent in your own language. */
81 __( 'When you give 5-stars, an actual person does a little happy dance!', 'advanced-ads' ) . '</p>'
82 . '<p>'
83 . '<span class="dashicons dashicons-external"></span>&nbsp;<strong><a href="https://wordpress.org/support/plugin/advanced-ads/reviews/?rate=5#new-post" target=_"blank">' . __( 'Sure, I appreciate your work', 'advanced-ads' ) . '</a></strong>'
84 . ' &nbsp;&nbsp;<span class="dashicons dashicons-sos"></span>&nbsp;<a href="https://wpadvancedads.com/support/?utm_source=advanced-ads&utm_medium=link&utm_campaign=notice-review" target=_"blank">' . __( 'Yes, but help me first to solve a problem, please', 'advanced-ads' ) . '</a>'
85 . '</p></div>',
86 'global' => false,
87 ],
88 // Black Friday 2023 promotion.
89 'bfcm23' => [
90 'type' => NOTICE_TYPES['promo'],
91 'text' => sprintf(
92 /* translators: %1$s is the markup for the discount value, %2$s starts a button link, %3$s closes the button link. */
93 __( 'Save %1$s on all products with our Black Friday / Cyber Monday offer! %2$sGet this deal%3$s', 'advanced-ads' ),
94 '<span style="font-weight: bold; font-size: 1.6em; vertical-align: sub;">30%</span>',
95 '<a class="button button-primary" target="_blank" href="https://wpadvancedads.com/pricing/?utm_source=advanced-ads&utm_medium=link&utm_campaign=bfcm-2023">',
96 '</a>'
97 ),
98 'global' => true,
99 ],
100 // Black Friday 2025 promotion.
101 'bfcm25' => [
102 'type' => NOTICE_TYPES['promo'],
103 'text' => sprintf(
104 /* translators: %1$s is the markup for the discount value, %2$s starts a button link, %3$s closes the button link. */
105 __( 'Save %1$s on all products with our Black Friday / Cyber Monday offer! %2$sGet this deal%3$s', 'advanced-ads' ),
106 '<span style="font-weight: bold; font-size: 1.6em; vertical-align: sub;">30%</span>',
107 '<a class="button button-primary" target="_blank" href="https://wpadvancedads.com/pricing/?utm_source=advanced-ads&utm_medium=link&utm_campaign=bfcm-2025">',
108 '</a>'
109 ),
110 'global' => true,
111 ],
112 'monetize_wizard' => [
113 'type' => NOTICE_TYPES['info'],
114 'text' => sprintf(
115 wp_kses_post(
116 /* translators: %s: URL to the Advanced Ads onboarding wizard. */
117 __( 'Quickly set up Advanced Ads and monetize your website with just a few clicks. <a class="button button-primary" href="%s">Launch the wizard</a>', 'advanced-ads' )
118 ),
119 admin_url( 'admin.php?page=advanced-ads-onboarding' )
120 ),
121 ],
122 ];
123
124 // Add specific notifications for plugins that are incompatible with Advanced Ads 2.0.
125 foreach ( \AdvancedAds\Constants::ADDONS_NON_COMPATIBLE_VERSIONS as $version => $addon ) {
126 if ( isset( $manual_addons[ $addon ] ) ) {
127 $advanced_ads_admin_notices[ $addon . '_upgrade' ] = [
128 'type' => NOTICE_TYPES['info'],
129 'text' => sprintf(
130 wp_kses(
131 /* translators: %1$s: URL to the plugin file, %2$s: URL to the guide */
132 __( 'Your automatically deactivated version of <strong>%1$s needs to be updated manually</strong>. Please <a href="%2$s" target="_blank">download the newest plugin file</a> and follow our guide on <a href="%3$s" target="_blank">How to install an add-on</a>.', 'advanced-ads' ),
133 [
134 'strong' => [],
135 'a' => [
136 'href' => [],
137 'target' => [],
138 ],
139 ]
140 ),
141 $manual_addons[ $addon ]['title'],
142 $manual_addons[ $addon ]['zip'],
143 $manual_addons[ $addon ]['link']
144 ),
145 'global' => true,
146 ];
147 } else {
148 $advanced_ads_admin_notices[ $addon . '_upgrade' ] = [
149 'type' => NOTICE_TYPES['info'],
150 'text' => sprintf(
151 wp_kses(
152 /* translators: %1$s: URL to the plugin file, %2$s: URL to the guide */
153 __( 'Your version of <strong>%1$s</strong> is incompatible with <strong>Advanced Ads %2$s</strong> and has been deactivated. Please update the plugin to the latest version.', 'advanced-ads' ),
154 [
155 'strong' => [],
156 ]
157 ),
158 ucwords( str_replace( '-', ' ', $addon ) ),
159 ADVADS_VERSION
160 ),
161 'global' => true,
162 ];
163 }
164 }
165
166 // List of plugins that handle ads and may conflict with Advanced Ads
167 $plugin_conflicts = [
168 // Ad management / insertion plugins
169 'ad-inserter/ad-inserter.php' => 'Ad Inserter',
170 'adsanity/adsanity.php' => 'AdSanity',
171 'wp-quads/wpquads.php' => 'WP QUADS',
172 'quick-adsense-reloaded/quick-adsense-reloaded.php' => 'Quick AdSense Reloaded',
173 'simple-ads-manager/simple-ads-manager.php' => 'Simple Ads Manager',
174 'adrotate/adrotate.php' => 'AdRotate',
175 'adrotate-pro/adrotate-pro.php' => 'AdRotate Pro',
176 'wp-insert/wp-insert.php' => 'WP Insert',
177 'insert-post-ads/insert-post-ads.php' => 'Insert Post Ads',
178
179 // AdSense specific plugins
180 'adsense-plugin/adsense-plugin.php' => 'AdSense Plugin',
181 'google-adsense/google-adsense.php' => 'Google AdSense',
182 'adsense-made-easy/adsense-made-easy.php' => 'AdSense Made Easy',
183
184 // Auto ads / monetization plugins
185 'monetag/monetag.php' => 'Monetag',
186 'media-net-ads/media-net-ads.php' => 'Media.net Ads',
187 'ezoic/ezoic.php' => 'Ezoic',
188 'mediavine-control-panel/mediavine.php' => 'Mediavine',
189 ];
190
191
192 // Loop through conflict plugins
193 foreach ( $plugin_conflicts as $slug => $name ) {
194
195 // Check if plugin is active
196 if ( is_plugin_active( $slug ) ) {
197
198 // Generate unique notice ID
199 $noticeId = str_replace( ' ', '_', strtolower( $name ) );
200 $notice_id = sanitize_title( $noticeId ) . '_active';
201
202 // Register admin notice
203 $advanced_ads_admin_notices[ $notice_id ] = [
204 'type' => NOTICE_TYPES['error'],
205 'text' => sprintf(
206 /* translators: %s: Plugin name */
207 __( 'The <strong>%s</strong> plugin is active. Running it alongside <strong>Advanced Ads</strong> may lead to ad placement or display issues.', 'advanced-ads' ),
208 esc_html( $name )
209 ),
210 'global' => true,
211 ];
212 }
213 }
214
215 $advanced_ads_admin_notices = apply_filters(
216 'advanced-ads-notices',
217 $advanced_ads_admin_notices
218 );
219