Filter: dslc_filter_options_panel_sections
Add custom sections in the module options panel
Use dslc_filter_options_panel_sections filter to add custom sections in this panel:
For example here we create a new custom section called "Advanced Settings":
function someuniqueslug_add_section_advanced( $sections ) { $sections['advanced_settings'] = array ( 'label' => __( 'Advanced Settings', 'your-plugin-slug' ), 'icon' => 'dslc-icon-cog', ); return $sections; } add_filter( 'dslc_filter_options_panel_sections', 'someuniqueslug_add_section_advanced', 10 );
Make sure to use unique and code-friendly key for $sections array (in our example 'advanced_settings'). Once new section defined, you can use it in your modules. Assign module options to this section using 'section' => 'advanced_settings' attribute.
array( 'label' => __( 'Some Advanced Setting', 'your-plugin-slug' ), 'id' => 'advanced_settings_unique_option_id', 'std' => 'one two', 'type' => 'checkbox', 'choices' => array( array( 'label' => __( 'Option 1', 'your-plugin-slug' ), 'value' => 'one', ), array( 'label' => __( 'Option 2', 'your-plugin-slug' ), 'value' => 'two', ), array( 'label' => __( 'Option 3', 'your-plugin-slug' ), 'value' => 'three', ), ), 'section' => 'advanced_settings', ),
Filter available from version 1.2