Execute my custom function when clicking Vote button
-
hi, I love the plugin, thanks for providing it.
My site uses a very simple reward system when users perform certain actions. I would like to be able to make clicking the “Vote” button one of those actions.
So I need to know where to hook my custom function onto the vote button-click. Plus I’d need the poll ID and poll title to be available.
My polls are all very simple, type = choosing, few options, only one option can be selected, plus a Vote button.
Something like:
add_action ( ‘poll_submit_button_was_clicked’ , ‘my_function’ );
function my_function( $poll_id, $poll_title ) {
// my code goes here
}
Thank you, I would appreciate your assistance.
The topic ‘Execute my custom function when clicking Vote button’ is closed to new replies.