Ad_Repository.php
1 year ago
Group_Repository.php
1 year ago
ad-ajax.php
1 year ago
ad-debug.php
1 year ago
ad-expiration.php
1 year ago
ad-model.php
1 year ago
ad-select.php
1 year ago
ad.php
1 year ago
ad_group.php
1 year ago
ad_placements.php
1 year ago
ad_type_abstract.php
1 year ago
ad_type_content.php
1 year ago
ad_type_dummy.php
1 year ago
ad_type_group.php
1 year ago
ad_type_image.php
1 year ago
ad_type_plain.php
1 year ago
class-admin.php
1 year ago
class-advanced-ads-plugin.php
1 year ago
deprecated-functions.php
1 year ago
gadsense-dummy.php
1 year ago
placements-ad-label-position.php
1 year ago
class-admin.php
45 lines
| 1 | <?php // phpcs:ignore WordPress.Files.FileName |
| 2 | /** |
| 3 | * Advanced Ads main admin class |
| 4 | * |
| 5 | * @package AdvancedAds |
| 6 | * @author Advanced Ads <info@wpadvancedads.com> |
| 7 | * @since 1.0.0 |
| 8 | */ |
| 9 | |
| 10 | use AdvancedAds\Utilities\Conditional; |
| 11 | |
| 12 | defined( 'ABSPATH' ) || exit; |
| 13 | |
| 14 | /** |
| 15 | * |
| 16 | * Admin class. |
| 17 | * |
| 18 | * @deprecated 2.0.0 |
| 19 | */ |
| 20 | class Advanced_Ads_Admin { |
| 21 | /** |
| 22 | * Check if the current screen belongs to Advanced Ads |
| 23 | * |
| 24 | * @deprecated 1.47.0 |
| 25 | * |
| 26 | * @return bool |
| 27 | */ |
| 28 | public static function screen_belongs_to_advanced_ads() { |
| 29 | _deprecated_function( __METHOD__, '1.47.0', '\AdvancedAds\Utilities\Conditional::is_screen_advanced_ads()' ); |
| 30 | return Conditional::is_screen_advanced_ads(); |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * Get DateTimeZone object for the WP installation |
| 35 | * |
| 36 | * @return DateTimeZone object set in WP settings. |
| 37 | * @see Advanced_Ads_Utils::get_wp_timezone() |
| 38 | * |
| 39 | * @deprecated This is also used outside of admin as well as other plugins. |
| 40 | */ |
| 41 | public static function get_wp_timezone() { |
| 42 | return Advanced_Ads_Utils::get_wp_timezone(); |
| 43 | } |
| 44 | } |
| 45 |