of_sanitize_font_style

Sanitization for font style.

Description

of_sanitize_font_style( $value ); 

Parameters (1)

0. $value
The value.

Usage

  1. if ( !function_exists( 'of_sanitize_font_style' ) ) { 
  2. require_once '/admin/includes/class-options-sanitization.php'; 
  3.  
  4. // The value. 
  5. $value = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = of_sanitize_font_style($value); 
  9.  

Defined (1)

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

/admin/includes/class-options-sanitization.php  
  1. function of_sanitize_font_style( $value ) { 
  2. $recognized = of_recognized_font_styles(); 
  3. if ( array_key_exists( $value, $recognized ) ) { 
  4. return $value; 
  5. return apply_filters( 'of_default_font_style', current( $recognized ) );