Title: Call a php function when a vote is validated
Last modified: August 18, 2017

---

# Call a php function when a vote is validated

 *  Resolved [Murga](https://wordpress.org/support/users/murga/)
 * (@murga)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/call-a-php-function-when-a-vote-is-validated/)
 * Hi ! I would like to call a php function when a vote is validated.
 * I do not want to use javascript (wp.gdrts.hooks.addAction) because I want to 
   send secure data.
 * Is that possible ?
 * Thanks in advance 🙂
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcall-a-php-function-when-a-vote-is-validated%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Milan Petrovic](https://wordpress.org/support/users/gdragon/)
 * (@gdragon)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/call-a-php-function-when-a-vote-is-validated/#post-9420788)
 * Whenever is vote stored in the database, plugin runs an action: [gdrts_db_vote_logged](https://support.dev4press.com/kb/reference/gdrts_db_vote_logged/).
   You can hook your function to that action. Example included with the reference
   post.
 * Milan
 *  Thread Starter [Murga](https://wordpress.org/support/users/murga/)
 * (@murga)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/call-a-php-function-when-a-vote-is-validated/#post-9424874)
 * Thank you Milan ! This reference post solve my problem !

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Call a php function when a vote is validated’ is closed to new replies.

 * ![](https://ps.w.org/gd-rating-system/assets/icon.svg?rev=2889273)
 * [GD Rating System](https://wordpress.org/plugins/gd-rating-system/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gd-rating-system/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gd-rating-system/)
 * [Active Topics](https://wordpress.org/support/plugin/gd-rating-system/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gd-rating-system/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gd-rating-system/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Murga](https://wordpress.org/support/users/murga/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/call-a-php-function-when-a-vote-is-validated/#post-9424874)
 * Status: resolved