Usage
PHP
nebula()->get_data($option)
Parameters
$option
(Required) (String) The data to retrieve
Default: None
Additional Notes
This is used for data stored outside of Nebula Options. It is also stored in an array.
Source File
Located in /libs/Options/Options.php on line 83.
No Hooks
This function does not have any filters or actions available. Request one?
PHP
public function get_data($option){
$nebula_data = get_option('nebula_data');
//Always return the exact, unfiltered value for WP-CLI
if ( $this->is_cli() ){
return $nebula_data[$option];
}
if ( empty($nebula_data[$option]) ){
return null;
}
return $nebula_data[$option];
}
Override
This function can not be short-circuited with an override filter. Request one?