get_site_option always returns false
-
all calls to get_site_option return false, even when the data is clearly present in the database in the corresponding wp_#_options table.
Update_site_option is saving the data correctly, but get_site_option cannot find what update_site_option just saved.
My code is:
$options = (is_multisite()) ? get_site_option($this->option_name) : get_option($this->option_name);
where “
$this->option_name
” exactly matches the option_value from the wp_#_options table.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘get_site_option always returns false’ is closed to new replies.