: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Redux_Instances Functions
* @package Redux_Framework
* @deprecated Maintained for backward compatibility with v3.
* Retrieve an instance of ReduxFramework
* @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.
* @return array format ['opt_name' => $ReduxFramework]
function get_all_redux_instances(): array {
_deprecated_function( __FUNCTION__, '4.0', 'Redux::all_instances()' );
return Redux::all_instances();