| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* ReduxFrameworkInstances Functions |
| 5 |
* |
| 6 |
* @package Redux_Framework |
| 7 |
* @subpackage Core |
| 8 |
*/ |
| 9 |
if ( ! function_exists( 'get_redux_instance' ) ) { |
| 10 |
|
| 11 |
/** |
| 12 |
* Retreive an instance of ReduxFramework |
| 13 |
* |
| 14 |
* @param string $opt_name the defined opt_name as passed in $args |
| 15 |
* |
| 16 |
* @return object ReduxFramework |
| 17 |
*/ |
| 18 |
function get_redux_instance( $opt_name ) { |
| 19 |
return ReduxFrameworkInstances::get_instance( $opt_name ); |
| 20 |
} |
| 21 |
} |
| 22 |
|
| 23 |
if ( ! function_exists( 'get_all_redux_instances' ) ) { |
| 24 |
|
| 25 |
/** |
| 26 |
* Retreive all instances of ReduxFramework |
| 27 |
* as an associative array. |
| 28 |
* |
| 29 |
* @return array format ['opt_name' => $ReduxFramework] |
| 30 |
*/ |
| 31 |
function get_all_redux_instances() { |
| 32 |
return ReduxFrameworkInstances::get_all_instances(); |
| 33 |
} |
| 34 |
} |