The ‘data’ argument allows Redux to populate the field using dynamic queries for things like posts, pages, menus, categories, terms, etc. It automatically uses the correct WordPress function to retrieve each type of data. Most types of data accept an ‘args’ value, which will be passed to the WordPress function to control what data is […]
Category: The Basics
The Redux API
With Redux 3.5+, we’ve completely redesigned the way in which config files for Redux Framework options panels are created. In the past, the process involved creating a PHP class, dividing the declaration of arguments, help tabs, and section into different functions and feeding them into a new instance of the Redux Framework object (see sample-config-legacy.php […]
Support Defined
Who are we? We maintain an open source project entitled Redux Framework. It is used by hundreds of thousands of users across the world, in all walks of life. Redux Framework is used primarily by developers. That means if users of our developers approach us, it is often difficult and sometimes impossible to provide the […]
IDE Snippets & Templates
Thanks to the great work of our community, and notably @karimhossenbux of Kimono Themes, we now have Snippers for Redux for various IDEs. If you would like to contribute to this effort, please contact [email protected]. NetBeans Code Templates PHP Storm Live Templates Sublime Text Snippets
Generating a Support Hash
In order to provide you with the best support possible, we request you generate a support hash. Doing so is quite easy. Please note, Redux 3.4.4.8+ is required for this.If you have an early version, please update. First proceed to the Redux Support tab within your Redux instance. You can get there by one of […]
The Redux WP_Filesystem Proxy
Redux has a WordPress filesystem proxy built in to help you read and write files that will pass Theme-Check. You can use these calls the moment a Redux object has been loaded (your Redux config has been run). Getting Started First, you must get the Redux object. The easiest method is as follows: Now that […]
Loading Extensions in Your Code
Extensions are one of the most powerful features of Redux. Any part of Redux can be overloaded to do ANYTHING with extensions. RUN BEFORE YOU CONFIG FILE For extensions to work, you MUST run the extension loader and any config files BEFORE your options panel code. Otherwise it will not be applied. A limitation of […]
Validation
There are many validation options included within Redux. You can also build your own validation option if necessary. Required Fields To make a field required you will need to use the following setting: ‘validate’ => ‘not_empty’ Standard Validation Options HTML: ‘validate’ => ‘html’ No HTML: ‘validate’ => ‘no_html’ CSS: ‘validate’ => ‘css’ Javascript: ‘validate’ => […]
Using Hints in Fields
Hints may be used within fields, displaying a small question mark icon after (or before) the field title. See the little question mark icon above? When a user moves their mouse over the icon (or clicks in, optionally), a tooltip will display with additional information you provide. How do it all work? Please continue reading. […]
Using the ‘Required’ Argument
Fields may be linked/required/folded according to a/multiple parent value(s). This is accomplished by appending a required argument, similar to the following, on ant given field: The first value of the array is the field ID in which to link the field to. The second value is the operation to perform. The third value is the […]