Please, add hooks to function validate_vote()
-
As a site owner, sometimes would be valuable being able to do extend the default validation rules applied by methods/stars-rating/load.php:public function validate_vote()
I was thinking on something like this:
$_calc_vote_limit = $this->get_rule('vote_limit'); +do_action('gdrts_before_velidate_vote', $meta, $item, $user, $render, $errors); if ($max != $_calc_stars) { ... ... +do_action('gdrts_after_velidate_vote', $meta, $item, $user, $render, $errors); if (empty($errors->errors)) {What do you think?
If needed, I would be glad to send you a related Pull Request.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Please, add hooks to function validate_vote()’ is closed to new replies.