File "redux-instances.php"

Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/kapee-extensions/inc/admin/redux-core/inc/lib/redux-instances.php
File size: 834 bytes
MIME-type: text/x-php
Charset: utf-8

<?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 object                ReduxFramework
 */
function get_redux_instance( string $opt_name ) {
	_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();
}