gravityflowvacation_balance
The gravityflowvacation_balance filter allows the vacation balance to be modified by user.
Example usage:
add_action( 'gravityflowvacation_balance', 'gravityflow_gravityflowvacation_balance', 10, 7 ); function gravityflow_gravityflowvacation_balance( $total_available, $user_id, $annual_paid_time_off, $comp_days, $hr_adjustment, $carry, $approved ) { // Adjust the calculation and return the new balance. return $total_available; }
Placement
This code should be placed in the functions.php file of your active theme.