options_framework_location
The SKT Black options framework location hook.
Description
apply_filters( 'options_framework_location', $array );
Parameters (1)
- 0. $array
- The array.
Usage
- To run the hook, copy the example below.
- $array = apply_filters( 'options_framework_location', $array );
- if ( !empty( $array ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the options_framework_location callback
- function filter_options_framework_location( $array ) {
- // make filter magic happen here...
- return $array;
- };
- // add the filter
- add_filter( 'options_framework_location', 'filter_options_framework_location', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'options_framework_location', 'filter_options_framework_location', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /inc/includes/class-options-framework.php
- $location = apply_filters( 'options_framework_location', array( 'options.php' ) );