/** * Exports the current site's WP SEO settings. * * @return boolean|string $return true when success, error when failed. */ private function export_settings() { $this->export_header(); foreach (YMBESEO_Options::get_option_names() as $opt_group) { $this->write_opt_group($opt_group, $this->export); } $this->taxonomy_metadata(); if ($this->write_file()) { if ($this->zip_file()) { return true; } else { $this->error = __('Could not zip settings-file.', 'ymbeseo'); return false; } } $this->error = __('Could not write settings to file.', 'ymbeseo'); return false; }
/** * Retrieve an array of all the options the plugin uses. It can't use only one due to limitations of the options API. * * @deprecated 1.5.0 * @deprecated use YMBESEO_Options::get_option_names() * @see YMBESEO_Options::get_option_names() * * @return array of options. */ function get_YMBESEO_options_arr() { _deprecated_function(__FUNCTION__, 'WPSEO 1.5.0', 'YMBESEO_Options::get_option_names()'); return YMBESEO_Options::get_option_names(); }