main.php
23 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 | define( 'ADVADS_PRIVACY_BASE_PATH', plugin_dir_path( __FILE__ ) ); |
| 12 | define( 'ADVADS_PRIVACY_BASE_URL', plugins_url( basename( ADVADS_BASE_PATH ) . '/modules/' . basename( ADVADS_PRIVACY_BASE_PATH ) . '/' ) ); |
| 13 | |
| 14 | Advanced_Ads_Privacy::get_instance(); |
| 15 | |
| 16 | if ( is_admin() ) { |
| 17 | Advanced_Ads_Privacy_Admin::get_instance(); |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | |
| 22 | |
| 23 |