of_sanitize_background_repeat

Sanitization for background repeat.

Description

of_sanitize_background_repeat( $value ); 

Parameters (1)

0. $value
The value.

Usage

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

Defined (1)

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

/inc/includes/class-options-sanitize.php  
  1. function of_sanitize_background_repeat( $value ) { 
  2. if ( array_key_exists( $value, $recognized ) ) { 
  3. return $value; 
  4. return apply_filters( 'of_default_background_repeat', current( $recognized ) );