of_recognized_font_styles

Get recognized font styles.

Description

(array) of_recognized_font_styles(); 

Returns an array of all recognized font styles. Keys are intended to be stored in the database while values are ready for display in in html.

Returns (array)


Usage

  1. if ( !function_exists( 'of_recognized_font_styles' ) ) { 
  2. require_once '/inc/includes/class-options-sanitize.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = of_recognized_font_styles(); 
  7.  

Defined (1)

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

/inc/includes/class-options-sanitize.php  
  1. function of_recognized_font_styles() { 
  2. $default = array( 
  3. 'normal' => __( 'Normal', 'skt-white' ),  
  4. 'italic' => __( 'Italic', 'skt-white' ),  
  5. 'bold' => __( 'Bold', 'skt-white' ),  
  6. 'bold italic' => __( 'Bold Italic', 'skt-white' ) 
  7. ); 
  8. return apply_filters( 'of_recognized_font_styles', $default );