HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/delstar/wp-content/plugins/redux-framework/redux-core/inc/lib/redux-instances.php
<?php
/**
 * Redux_Instances Functions
 *
 * @package     Redux_Framework
 * @subpackage  Core
 * @deprecated Maintained for backward compatibility with v3.
 */

/**
 * Retrieve an instance of ReduxFramework
 *
 * @depreciated
 *
 * @param string $opt_name the defined opt_name as passed in $args.
 *
 * @return ReduxFramework                ReduxFramework
 */
function get_redux_instance( string $opt_name ): ReduxFramework {
	_deprecated_function( __FUNCTION__, '4.0', 'Redux::instance($opt_name)' );

	return Redux::instance( $opt_name );
}

/**
 * Retrieve all instances of ReduxFramework
 * as an associative array.
 *
 * @depreciated
 * @return array        format ['opt_name' => $ReduxFramework]
 */
function get_all_redux_instances(): array {
	_deprecated_function( __FUNCTION__, '4.0', 'Redux::all_instances()' );

	return Redux::all_instances();
}