jetpack_content_options_sanitize_blog_display

Sanitize the Display value.

Description

(string.) jetpack_content_options_sanitize_blog_display( (string) $display ); 

Returns (string.)

Parameters (1)

0. $display (string)
The display.

Usage

  1. if ( !function_exists( 'jetpack_content_options_sanitize_blog_display' ) ) { 
  2. require_once '/modules/theme-tools/content-options/customizer.php'; 
  3.  
  4. // The display. 
  5. $display = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = jetpack_content_options_sanitize_blog_display($display); 
  9.  

Defined (1)

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

/modules/theme-tools/content-options/customizer.php  
  1. function jetpack_content_options_sanitize_blog_display( $display ) { 
  2. if ( ! in_array( $display, array( 'content', 'excerpt', 'mixed' ) ) ) { 
  3. $display = 'content'; 
  4. return $display;