benecaster_guest_manager_after_submit_guest_changes
Fires once a guest’s Guest portal changes are stored and waiting for approval. A later submission replaces an earlier one.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$guest_id |
int |
— | The guest's post id |
$pending |
array |
— | The waiting changes, `{ fields, photo, submitted }` |
Example
// Email the show's producer the moment a guest sends changes.
add_action( 'benecaster_guest_manager_after_submit_guest_changes', static function ( int $guest_id, array $pending ): void {
wp_mail( 'producer@example.com', 'Guest changes waiting', get_the_title( $guest_id ) . ' changed: ' . implode( ', ', array_keys( $pending['fields'] ) ) );
}, 10, 2 );
Notes
Need this built rather than just documented? See our services →