advanced-ads
Last commit date
admin
1 year ago
assets
1 year ago
classes
1 year ago
includes
1 year ago
languages
1 year ago
lib
1 year ago
modules
1 year ago
packages
1 year ago
public
1 year ago
src
2 years ago
views
1 year ago
LICENSE.txt
12 years ago
advanced-ads.php
1 year ago
index.php
2 years ago
postcss.config.js
2 years ago
readme.txt
1 year ago
tailwind.config.js
2 years ago
webpack.mix.js
1 year ago
wpml-config.xml
7 years ago
advanced-ads.php
54 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Advanced Ads. |
| 4 | * |
| 5 | * @package Advanced_Ads |
| 6 | * @author Advanced Ads GmbH <support@wpadvancedads.com> |
| 7 | * @license GPL-2.0+ |
| 8 | * @link https://wpadvancedads.com |
| 9 | * @copyright since 2013 Thomas Maier, Advanced Ads GmbH |
| 10 | * |
| 11 | * @wordpress-plugin |
| 12 | * Plugin Name: Advanced Ads |
| 13 | * Plugin URI: https://wpadvancedads.com |
| 14 | * Description: Manage and optimize your ads in WordPress |
| 15 | * Version: 1.53.1 |
| 16 | * Author: Advanced Ads GmbH |
| 17 | * Author URI: https://wpadvancedads.com |
| 18 | * Text Domain: advanced-ads |
| 19 | * Domain Path: /languages |
| 20 | * License: GPL-2.0+ |
| 21 | * License URI: https://www.gnu.org/licenses/gpl-2.0.txt |
| 22 | */ |
| 23 | |
| 24 | // Early bail!! |
| 25 | if ( ! function_exists( 'add_filter' ) ) { |
| 26 | header( 'Status: 403 Forbidden' ); |
| 27 | header( 'HTTP/1.1 403 Forbidden' ); |
| 28 | exit(); |
| 29 | } |
| 30 | |
| 31 | if ( defined( 'ADVADS_FILE' ) ) { |
| 32 | return; |
| 33 | } |
| 34 | |
| 35 | define( 'ADVADS_FILE', __FILE__ ); |
| 36 | define( 'ADVADS_VERSION', '1.53.1' ); |
| 37 | |
| 38 | // Load the autoloader. |
| 39 | require_once __DIR__ . '/includes/class-autoloader.php'; |
| 40 | \AdvancedAds\Autoloader::get()->initialize(); |
| 41 | |
| 42 | /** |
| 43 | * Returns the main instance of Advanced Ads. |
| 44 | * |
| 45 | * @since 1.46.0 |
| 46 | * @return \AdvancedAds\Plugin |
| 47 | */ |
| 48 | function wp_advads() { |
| 49 | return \AdvancedAds\Plugin::get(); |
| 50 | } |
| 51 | |
| 52 | // Start it. |
| 53 | wp_advads(); |
| 54 |