PluginProbe
Advanced Ads – Ad Manager & AdSense / 2.0.22
Advanced Ads – Ad Manager & AdSense v2.0.22
2.0.26 2.0.25 2.0.24 2.0.23 2.0.22 2.0.21 1.38.0 1.39.0 1.39.1 1.39.2 1.39.3 1.39.4 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.40.0 1.40.1 1.40.2 All 348 releases
advanced-ads / deprecated / Group_Repository.php
Group_Repository.php
36 lines 814 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php // phpcs:ignore WordPress.Files.FileName
2 /**
3 * Group Repository class.
4 *
5 * @package AdvancedAds
6 * @author Advanced Ads <info@wpadvancedads.com>
7 */
8
9 namespace Advanced_Ads;
10
11 use AdvancedAds\Abstracts\Group;
12
13 /**
14 * Group Repository/Factory class.
15 *
16 * @deprecated 2.0.0
17 */
18 class Group_Repository {
19
20 /**
21 * Get the ad object from the repository. Create and add it, if it doesn't exist.
22 * If the passed id is not an ad, return the created ad object without adding it to the repository.
23 * This behavior prevents breaking changes.
24 *
25 * @deprecated 2.0.0
26 *
27 * @param int|WP_Term $term The term to look for.
28 *
29 * @return Group|bool
30 */
31 public static function get( $term ) {
32 _deprecated_function( __METHOD__, '2.0.0', 'wp_advads_get_group()' );
33 return wp_advads_get_group( $term );
34 }
35 }
36