gpns_user_unsubscribed
Description
Fires after a user has been successfully unsubscribed from GPNS notifications. This action provides all the details about the unsubscribe action, allowing developers to trigger custom actions such as sending admin notifications, unsubscribing from third-party services, or logging the event.
Usage
Applied globally
add_action( 'gpns_user_unsubscribed', 'my_custom_function' );
Parameters
$email
string
The email address that was unsubscribed.
$scope
string
The scope of the unsubscribe action. Can be ‘all’, ‘form’, or ‘notification’.
$form_id
int|false
The form ID (if scope is ‘form’ or ‘notification’).
$notification_id
string|false
The notification ID (if scope is ‘notification’).
Since
1.3.16
Hook added.