HEX
Server: Apache/2.4.65 (Debian)
System: Linux 88f31f35b0b8 6.1.0-38-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.147-1 (2025-08-02) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/advanced-ads/deprecated/deprecated-functions.php
<?php
/**
 * The functions graveyard.
 *
 * @package AdvancedAds
 * @author  Advanced Ads <info@wpadvancedads.com>
 * @since   2.0.0
 */

/**
 * Return ad content
 *
 * @since 1.0.0
 * @deprecated 2.0.0
 *
 * @param int   $id   Id of the ad (post).
 * @param array $args Additional arguments.
 */
function get_ad( $id = 0, $args = [] ) {
	_deprecated_function( __FUNCTION__, '2.0.0', 'get_the_ad' );

	return get_the_ad( $id, '', $args );
}

/**
 * Return an ad from an ad group based on ad weight
 *
 * @since 1.0.0
 * @deprecated 2.0.0
 *
 * @param int   $id   Id of the ad group (taxonomy).
 * @param array $args Additional arguments.
 */
function get_ad_group( $id = 0, $args = [] ) {
	_deprecated_function( __FUNCTION__, '2.0.0', 'get_the_group' );

	return get_the_group( $id, '', $args );
}

/**
 * Return content of an ad placement
 *
 * @since 1.1.0
 * @deprecated 2.0.0
 *
 * @param string $id   Slug of the ad placement.
 * @param array  $args Additional arguments.
 */
function get_ad_placement( $id = '', $args = [] ) {
	_deprecated_function( __FUNCTION__, '2.0.0', 'get_the_placement' );
	return get_the_placement( $id, '', $args );
}