catchresponsive_sanitize_page

Sanitizes page/post in slider.

Description

catchresponsive_sanitize_page( $input ); 

Parameters (1)

0. $input
Entered value

Usage

  1. if ( !function_exists( 'catchresponsive_sanitize_page' ) ) { 
  2. require_once '/inc/customizer-includes/catchresponsive-customizer-sanitize-functions.php'; 
  3.  
  4. // entered value 
  5. $input = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = catchresponsive_sanitize_page($input); 
  9.  

Defined (1)

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

/inc/customizer-includes/catchresponsive-customizer-sanitize-functions.php  
  1. function catchresponsive_sanitize_page( $input ) { 
  2. // Ensure $input is an absolute integer. 
  3. $page_id = absint( $input ); 
  4. // If $page_id is an ID of a published page, return it; otherwise, return false 
  5. return ( 'publish' == get_post_status( $page_id ) ? $page_id : false );