Skip to main content

benecaster_guest_manager_before_submit_guest_changes

Action Premium guest-manager

Fires when a guest presses Submit for approval on their Guest portal form and the changes passed every check, before they are stored to wait for approval.

Parameters

Name Type Default Description
$guest_id int — The guest's post id
$fields array — Only the fields that differ from the public profile, cleaned: `title`, `organization`, `bio`, `website`, `social`
$photo string|array|null — `null`, `"remove"`, or `{ file, mime }` for a new photo

Example

add_action( 'benecaster_guest_manager_before_submit_guest_changes', function ( int $guest_id, array $fields ): void {
    error_log( 'Guest ' . $guest_id . ' is sending: ' . implode( ', ', array_keys( $fields ) ) );
}, 10, 2 );

Notes

Nothing a guest sends appears on any public page before approval. Walkthrough: Restyle the guest's own Guest portal form, or act when a guest sends changes.

Need this built rather than just documented? See our services →