HEX
Server: nginx/1.27.1
System: Linux in-4 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: ilikadirect (1186)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v6964/testingff/public_html/fdfctr/wp-content/plugins/giveasap/includes/compact.php
<?php
/**
 * Compatibility functions and classes for code used for Customers add-ons.
 */

class GA_Integration extends \Simple_Giveaways\GA_Integration {}

if ( ! function_exists( 'sg_get_giveaway' ) ) {
	/**
	 * For compatibility reasons with Customer's add-ons.
	 */
	function sg_get_giveaway( $post ) {
		_deprecated_function( 'sg_get_giveaway', '2.36.2', 'giveasap_get_giveaway' );
		return giveasap_get_giveaway( $post );
	}
}

if ( ! function_exists( 'sg_get_subscriber' ) ) {
	/**
	 * For back-compatibility for a few given add-ons to customers.
	 *
	 * @param integer|object $entry Entry ID or the Entry Object.
	 * @param integer        $giveaway_id Giveaway ID.
	 *
	 * @return \Simple_Giveaways\SG_Subscriber
	 */
	function sg_get_subscriber( $entry, $giveaway_id = 0 ) {
		_deprecated_function( 'sg_get_subscriber', '2.36.2', 'giveasap_get_subscriber' );
		return giveasap_get_subscriber( $entry, $giveaway_id );
	}
}


if ( ! function_exists( 'sg_get_rules_text' ) ) {
	/**
	 * For back-compatibility for a few given add-ons to customers.
	 *
	 * @param \Simple_Giveaways\SG_Giveaway|integer $giveaway
	 *
	 * @return string
	 */
	function sg_get_rules_text( $giveaway ) {
		_deprecated_function( 'sg_get_rules_text', '2.36.2', 'giveasap_get_rules_text' );
		return giveasap_get_rules_text( $giveaway );
	}
}