main.php
21 lines
| 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_PRIVACY_SLUG' ) ) { |
| 6 | return ; |
| 7 | } |
| 8 | |
| 9 | // general and global slug, e.g. to store options in WP |
| 10 | define( 'ADVADS_PRIVACY_SLUG', 'advanced-ads-privacy' ); |
| 11 | |
| 12 | Advanced_Ads_Privacy::get_instance(); |
| 13 | |
| 14 | if ( is_admin() ) { |
| 15 | Advanced_Ads_Privacy_Admin::get_instance(); |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | |
| 20 | |
| 21 |