Skip to Content
Menu

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.

Was this page helpful? Yes No


    A feedback message is required to submit this form.


    Please check that you have entered a valid email address.

    Enter your email address if you would like a response.

    Thank you for your feedback!

    Source File

    Located in /libs/Options/Options.php on line 78.

    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?