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