benecaster_guest_manager_guest_form_data
Filters what the guest’s own Guest portal form (Edit Your Guest Profile, template guest/edit.php) draws: state (invalid, form or thanks), message, and on the form name, values, photo_url, errors, action, fields, nonce, max_bytes, max_lengths, max_social, blank_rows, pending_since. Values are raw; the template escapes them.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$form |
array |
— | The form data |
$guest_id |
int |
— | The guest's post id, `0` on the plain-message page |
Returns:
array
Example
// Offer two blank social rows instead of three.
add_filter( 'benecaster_guest_manager_guest_form_data', static function ( array $form ): array {
if ( 'form' === $form['state'] ) {
$form['blank_rows'] = 2;
}
return $form;
} );
Notes
action carries the guest's key: print it only as the form's address. 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 →