/** * Set term option value in database * * @param int $term_id * @param string $taxonomy * @param string|null $option_id Specific option id (accepts multikey). null - all options * @param mixed $value * * @return null */ function fw_set_db_term_option($term_id, $taxonomy, $option_id = null, $value) { if (!taxonomy_exists($taxonomy)) { return null; } $option_id = 'fw_options' . ($option_id !== null ? '/' . $option_id : ''); FW_WP_Meta::set('fw_term', $term_id, $option_id, $value); }
protected function set_values($item_id, $values, array $extra_data = array()) { FW_WP_Meta::set('post', $this->get_post_id($item_id), 'fw_options', $values); }