soundcloud_get_option

Plugin options getter.

Description

soundcloud_get_option( ({string|array}) $option, (bool) $default = false ); 

Parameters (2)

0. $option ({string|array})
The option.
1. $default — Optional. (bool) => false
Default value

Usage

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

Defined (1)

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

/modules/shortcodes/soundcloud.php  
  1. function soundcloud_get_option( $option, $default = false ) { 
  2. $value = get_option( 'soundcloud_' . $option ); 
  3. return $value === '' ? $default : $value;