abstracts
1 day ago
admin
1 week ago
ads
1 week ago
compatibility
1 week ago
crons
1 week ago
frontend
1 week ago
groups
1 day ago
importers
1 day ago
installation
1 year ago
interfaces
5 months ago
license
3 months ago
placements
1 week ago
rest
1 day ago
traits
1 week ago
utilities
1 week ago
cap_map.php
3 years ago
class-assets-registry.php
4 weeks ago
class-autoloader.php
1 week ago
class-cache-invalidator.php
1 week ago
class-constants.php
1 year ago
class-content-injector.php
4 weeks ago
class-entities.php
3 months ago
class-modal.php
1 year ago
class-modules.php
1 year ago
class-options.php
1 year ago
class-plugin.php
1 week ago
class-post-data.php
10 months ago
class-shortcodes.php
1 week ago
class-upgrades.php
1 day ago
class-widget.php
11 months ago
default-hooks.php
5 months ago
functions-ad.php
1 week ago
functions-components.php
3 months ago
functions-conditional.php
1 year ago
functions-core.php
1 year ago
functions-group.php
1 day ago
functions-placement.php
1 week ago
functions.php
1 week ago
index.php
2 years ago
load_modules.php
2 years ago
default-hooks.php
16 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Default hooks |
| 4 | * |
| 5 | * @since 2.0.0 |
| 6 | * @package AdvancedAds |
| 7 | * @author Advanced Ads <info@wpadvancedads.com> |
| 8 | */ |
| 9 | |
| 10 | use AdvancedAds\Framework\Utilities\Formatting; |
| 11 | |
| 12 | add_filter( 'advanced-ads-ad-get-once_per_page', [ Formatting::class, 'string_to_bool' ] ); |
| 13 | add_filter( 'advanced-ads-ad-get-ad_args', '__return_array_if_null' ); |
| 14 | add_filter( 'advanced-ads-group-get-ad_args', '__return_array_if_null' ); |
| 15 | add_filter( 'advanced-ads-group-get-random', [ Formatting::class, 'string_to_bool' ] ); |
| 16 |