/**
* Handles saving of the $_POST data
* @since 0.1.3
* @param int $term_id Term's ID
*/
public function do_save($term_id)
{
if (!class_exists('CMB2')) {
return;
}
$object_id = $this->id($term_id);
if (isset($_POST[$this->cmb->nonce()]) && wp_verify_nonce($_POST[$this->cmb->nonce()], $this->cmb->nonce())) {
$this->do_override_filters($term_id);
$this->cmb->save_fields($object_id, 'options-page', $_POST);
}
}