soundcloud_booleanize

Booleanize a value.

Description

({boolean}) soundcloud_booleanize( ({boolean|string}) $value ); 

Returns ({boolean})

Parameters (1)

0. $value ({boolean|string})
The value.

Usage

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

Defined (1)

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

/modules/shortcodes/soundcloud.php  
  1. function soundcloud_booleanize( $value ) { 
  2. return is_bool( $value ) ? $value : $value === 'true' ? true : false;