https://github.com/reduxframework/redux-extensions-loader
The loader code needed to instantiate any Redux extension.
https://github.com/reduxframework/redux-extensions-loader
Last synced: 5 months ago
JSON representation
The loader code needed to instantiate any Redux extension.
- Host: GitHub
- URL: https://github.com/reduxframework/redux-extensions-loader
- Owner: reduxframework
- License: gpl-3.0
- Created: 2014-02-12T16:33:53.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2021-01-19T12:49:57.000Z (almost 5 years ago)
- Last Synced: 2025-04-09T19:17:58.053Z (8 months ago)
- Language: PHP
- Size: 18.6 KB
- Stars: 13
- Watchers: 12
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
redux-extensions-loader
================
> **DEPRECATED**: This is no longer needed with Redux 4+. Use Redux `Redux::set_extensions( {OPT_NAME}, {EXTENTION_PATH} );` instead.
The loader code needed to instantiate any Redux extension. To load any Redux extension, you need but do two things:
* Inside loader.php change `{$redux_opt_name}` to match your opt_name or set `$redux_opt_name` to your `opt_name` and make sure it's accessible by loader.php.
* Change the function name and hook reference of `redux_register_custom_extension_loader` as not to conflict with another developer's code.
Then place any extension folder within ~/extensions.
Depending on the extension you may also need to load a config file of some type to declare the options for that extension.
# Make sure this is included before you declare your Redux Framework object.
Because of WordPress hooks you need to include this before you create your ReduxFramework instance. It has to do with hooks. Just load this loader and your config settings prior to creating that object.
## Note: DO NOT place extensions within ~/ReduxCore/Extensions
If you do so any other plugin could override your extensions and they would be inaccessible by your code.