public is_valid_save ( integer $term_id = null ) : boolean | ||
$term_id | integer | ID of the term against which save() is ran |
return | boolean |
public function is_valid_save($term_id = null)
{
if (!isset($_REQUEST[$this->get_nonce_name()]) || !wp_verify_nonce($_REQUEST[$this->get_nonce_name()], $this->get_nonce_name())) {
// Input var okay.
return false;
} else {
if ($term_id < 1) {
return false;
}
}
return true;
}