# quadmenu/1.8.8/lib/ReduxCore/inc/lib.redux_instances.php

QuadMenu – Mega Menu, version 1.8.8. 34 lines.

- Page: https://pluginprobe.com/plugins/quadmenu/1.8.8/code/lib/ReduxCore/inc/lib.redux_instances.php
- Raw: https://pluginprobe.com/plugins/quadmenu/1.8.8/raw/lib/ReduxCore/inc/lib.redux_instances.php
- Modified: 2018-11-27T20:44:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/quadmenu/1.8.8/code/lib/ReduxCore/inc/lib.redux_instances.php#L10-L20`.

```php
<?php

    /**
     * ReduxFrameworkInstances Functions
     *
     * @package     Redux_Framework
     * @subpackage  Core
     */
    if ( ! function_exists( 'get_redux_instance' ) ) {

        /**
         * Retreive an instance of ReduxFramework
         *
         * @param  string $opt_name the defined opt_name as passed in $args
         *
         * @return object                ReduxFramework
         */
        function get_redux_instance( $opt_name ) {
            return ReduxFrameworkInstances::get_instance( $opt_name );
        }
    }

    if ( ! function_exists( 'get_all_redux_instances' ) ) {

        /**
         * Retreive all instances of ReduxFramework
         * as an associative array.
         *
         * @return array        format ['opt_name' => $ReduxFramework]
         */
        function get_all_redux_instances() {
            return ReduxFrameworkInstances::get_all_instances();
        }
    }
```
