Last active
June 27, 2016 13:04
-
-
Save maheshwaghmare/54ddb9537015d326c4c35270d2a99d84 to your computer and use it in GitHub Desktop.
add-redux-section-dynamically
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter('redux/options/{REDUX_OPTION_NAME}/sections', 'addSections' ); | |
| function addSections( $sections ) { | |
| $sections[] = array( | |
| 'title' => __( 'SECTION NAME', 'redux-framework-demo' ), | |
| 'desc' => __('DESCRIPTION GOES HERE', 'redux-framework-demo'), | |
| 'icon' => 'el-icon-paper-clip', | |
| 'fields' => array( | |
| ) | |
| ); | |
| return $sections; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment