optionsframework_<type>

The SKT White optionsframework type hook.

Description

apply_filters( 'optionsframework_<type>', (string) $option_name, (unknown) $value, (unknown) $val ); 

Parameters (3)

0. $option_name (string)
The option name.
1. $value (unknown)
The value.
2. $val (unknown)
The val.

Usage

To run the hook, copy the example below.
  1. $option_name = apply_filters( 'optionsframework_{$type}', $option_name, $value, $val ); 
  2.  
  3. if ( !empty( $option_name ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the optionsframework_<type> callback 
  2. function filter_optionsframework_type( $option_name, $value, $val ) { 
  3. // make filter magic happen here... 
  4. return $option_name
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( "optionsframework_{$type}", 'filter_optionsframework_type', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( "optionsframework_{$type}", 'filter_optionsframework_type', 10, 3 ); 

Defined (1)

The filter is defined in the following location(s).

/inc/includes/class-options-interface.php  
  1. $output .= apply_filters( 'optionsframework_' . $value['type'], $option_name, $value, $val );