action
Fires after a user successfully consumes one free vote.
Parameters of davo_free_vote_consumed Parameter Type Description $user_id int The user who consumed the free vote. $week_start string 'Y-m-d' Monday date of the current bucket.
add_action Copyadd_action ( 'davo_free_vote_consumed' , 'my_action_callback' , 10 , 2 );
/**
* @param int $user_id
* @param string $week_start
*/
function my_action_callback ( $user_id , $week_start ) {
// Your code here.
}src/domains/free-votes/repository.php:94
action
Fires after a user's previously consumed free vote is refunded.
Parameters of davo_free_vote_released Parameter Type Description $user_id int The user whose free vote was refunded. $week_start string 'Y-m-d' Monday date of the current bucket.
add_action Copyadd_action ( 'davo_free_vote_released' , 'my_action_callback' , 10 , 2 );
/**
* @param int $user_id
* @param string $week_start
*/
function my_action_callback ( $user_id , $week_start ) {
// Your code here.
}src/domains/free-votes/repository.php:123