Filterable Configure
Filterable Configure
// framework options filter example
function extra_wpsf_framework_options( $options ) {
$options = array(); // remove old options
$options[] = array(
'name' => 'section_unique_id',
'title' => 'First Section',
'icon' => 'fa fa-heart',
'fields' => array(
array(
'id' => 'option_id',
'type' => 'text',
'title' => 'First Option',
),
array(
'id' => 'another_option_id',
'type' => 'textarea',
'title' => 'Secondary Option',
),
)
);
return $options;
}
add_filter( 'wpsf_framework_options', 'extra_wpsf_framework_options' );Last updated