gravityflowchecklists_post_remove_exemption

Description

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

Parameters

ParameterTypeDetails
$user_id int IntegerThe user for which the exemption added.
$form_id int IntegerThe ID of the form for which the exemption was added.
$checklist_id stringStringThe ID of the checklist for which the exemption was added.
$exemption arrayEntry The details of the exemption including the user ID of the user who added the exemption and the timestamp.

Examples

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 can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.

See also the PHP section in this article: Where Do I Put This Code?