mh_impact_lite_sanitize_select

The MH Impact lite mh impact lite sanitize select function.

Description

mh_impact_lite_sanitize_select( $input ); 

Parameters (1)

0. $input
The input.

Usage

  1. if ( !function_exists( 'mh_impact_lite_sanitize_select' ) ) { 
  2. require_once '/includes/mh-customizer.php'; 
  3.  
  4. // The input. 
  5. $input = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = mh_impact_lite_sanitize_select($input); 
  9.  

Defined (1)

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

/includes/mh-customizer.php  
  1. function mh_impact_lite_sanitize_select($input) { 
  2. $valid = array( 
  3. 'right' => esc_html__('Right Sidebar', 'mh-impact-lite'),  
  4. 'left' => esc_html__('Left Sidebar', 'mh-impact-lite') 
  5. ); 
  6. if (array_key_exists($input, $valid)) { 
  7. return $input; 
  8. } else { 
  9. return '';