gravityflowchecklists_post_remove_exemption

The gravityflowchecklists_post_remove_exemption action fires after an admin has clicked on the checkbox to remove an exemption for a user.

Parameters

int $user_id The user for which the exemption added.
int $form_id The ID of the form for which the exemption was added.
string $checklist_id The ID of the checklist for which the exemption was added.
array $exemption The details of the exemption including the user ID of the user who added the exemption and the timestamp.

Examples

The following snippet will prevent entries from form with the ID of 1 from being presented in the status page

add_action( 'gravityflowchecklists_post_remove_exemption', 'sh_gravityflowchecklists_post_remove_exemption', 10, 4 );
/**
 * Fires after an exemption has been removed.
 *
 * @param int $user_id The user for which the exemption removed.
 * @param int $form_id The ID of the form for which the exemption was removed.
 * @param string $checklist_id The ID of the checklist for which the exemption was removed.
 * @param array $exemption The details of the exemption including the user ID of the user who added the exemption and the timestamp.
 */
function sh_gravityflowchecklists_post_remove_exemption( $user_id, $form_id, $checklist_id, $exemption ) {
	// Do something after an exemption has been triggered.
}

Placement

This code should be placed in the functions.php file of your active theme.