PluginProbe
Advanced Ads – Ad Manager & AdSense / 1.8
Advanced Ads – Ad Manager & AdSense v1.8
2.0.26 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 All 348 releases
advanced-ads / modules / ad-blocker / main.php
main.php
25 lines 602 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( class_exists( 'Advanced_Ads', false ) ) {
3
4 // only load if not already existing (maybe included from another plugin)
5 if ( defined( 'ADVADS_AB_BASE_PATH' ) ) {
6 return ;
7 }
8
9 // load basic path to the plugin
10 define( 'ADVADS_AB_BASE_PATH', plugin_dir_path( __FILE__ ) );
11 // general and global slug, e.g. to store options in WP, textdomain
12 define( 'ADVADS_AB_SLUG', 'advanced-ads-ab-module' );
13
14 Advanced_Ads_Ad_Blocker::get_instance();
15
16 $is_ajax = defined( 'DOING_AJAX' ) && DOING_AJAX;
17
18 if ( is_admin() && ! $is_ajax ) {
19 Advanced_Ads_Ad_Blocker_Admin::get_instance();
20 }
21 }
22
23
24
25