/** * Get term option value from the database * * @param int $term_id * @param string $taxonomy * @param string|null $option_id Specific option id (accepts multikey). null - all options * @param null|mixed $default_value If no option found in the database, this value will be returned * @param null|bool $get_original_value Original value is that with no translations and other changes * * @return mixed|null */ function fw_get_db_term_option($term_id, $taxonomy, $option_id = null, $default_value = null, $get_original_value = null) { if (!taxonomy_exists($taxonomy)) { return null; } $option_id = 'fw_options' . ($option_id !== null ? '/' . $option_id : ''); return FW_WP_Meta::get('fw_term', $term_id, $option_id, $default_value, $get_original_value); }
protected function get_values($item_id, array $extra_data = array()) { return FW_WP_Meta::get('post', $this->get_post_id($item_id), 'fw_options', array()); }