grofiles_hovercard_option_sanitize

Sanitation filter for Gravatar Hovercard setting.

Description

grofiles_hovercard_option_sanitize( $val ); 

Parameters (1)

0. $val
The val.

Usage

  1. if ( !function_exists( 'grofiles_hovercard_option_sanitize' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/gravatar-hovercards.php'; 
  3.  
  4. // The val. 
  5. $val = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = grofiles_hovercard_option_sanitize($val); 
  9.  

Defined (1)

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

/modules/gravatar-hovercards.php  
  1. function grofiles_hovercard_option_sanitize( $val ) { 
  2. if ( 'disabled' == $val ) { 
  3. return $val; 
  4.  
  5. return $val ? 'enabled' : 'disabled';