of_sanitize_background_attachment

Sanitization for background attachment.

Description

of_sanitize_background_attachment( $value ); 

Parameters (1)

0. $value
The value.

Usage

  1. if ( !function_exists( 'of_sanitize_background_attachment' ) ) { 
  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_background_attachment($value); 
  9.  

Defined (1)

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

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