Skip to Content

get_data()

Retrieve non-option Nebula data.

PHP June 20, 2017

Usage

PHP
nebula()->get_data($option)

Parameters

$option
(Required) (String) The data to retrieve
Default: None

Request or provide clarification »

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 74.

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');

            if ( empty($nebula_data[$option]) ){
                return false;
            }

            return $nebula_data[$option];
        }

Override

This function can not be short-circuited with an override filter. Request one?