of_recognized_font_sizes

Get recognized font sizes.

Description

(array) of_recognized_font_sizes(); 

Returns an indexed array of all recognized font sizes. Values are integers and represent a range of sizes from smallest to largest.

Returns (array)


Usage

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

Defined (1)

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

/inc/includes/class-options-sanitize.php  
  1. function of_recognized_font_sizes() { 
  2. $sizes = range( 9, 71 ); 
  3. $sizes = apply_filters( 'of_recognized_font_sizes', $sizes ); 
  4. $sizes = array_map( 'absint', $sizes ); 
  5. return $sizes;