of_sanitize_font_style
Sanitization for font style.
Description
of_sanitize_font_style( $value );
Parameters (1)
- 0. $value
- The value.
Usage
if ( !function_exists( 'of_sanitize_font_style' ) ) { require_once '/inc/includes/class-options-sanitize.php'; } // The value. $value = null; // NOTICE! Understand what this does before running. $result = of_sanitize_font_style($value);
Defined (1)
The function is defined in the following location(s).
- /inc/includes/class-options-sanitize.php
- function of_sanitize_font_style( $value ) {
- $recognized = of_recognized_font_styles();
- if ( array_key_exists( $value, $recognized ) ) {
- return $value;
- }
- return apply_filters( 'of_default_font_style', current( $recognized ) );
- }