benecaster_guest_manager_after_approve_guest_changes
Fires after a guest’s Guest portal changes were applied to their profile.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$guest_id |
int |
— | The guest's post id |
$fields |
array |
— | The fields written, `photo_id` included when the photo changed |
Example
add_action( 'benecaster_guest_manager_after_approve_guest_changes', function ( int $guest_id, array $fields ): void {
my_crm_upsert_contact( 'guest-' . $guest_id, $fields );
}, 10, 2 );
Notes
Only the fields the guest changed are written: a field the podcaster edited since keeps the podcaster's value. Walkthrough: Approve or decline guests' Guest portal changes from code, and change the approval emails.
Affects
- POST benecaster-guest-manager/v1/approvals/{id}/approve
Need this built rather than just documented? See our services →