gpeb_edit_confirmation
Description
Filter the confirmation shown when editing an entry. Useful for changing behavior to a redirect or programmatically changing the message.
Usage
Filter the confirmation used when editing any entry with Entry Blocks.
add_filter( 'gpeb_edit_confirmation', 'my_custom_function' );
Filter the confirmation used when editing an entry belonging to a specific form with Entry Blocks.
add_filter( 'gpeb_edit_confirmation_FORMID', 'my_custom_function' );
Parameters
confirmation array
The edit confirmation.
form array
The current form.
entry array
The entry being edited.
Since
This filter is available since Gravity Forms Entry Blocks 1.0-alpha-2.4.
Examples
Redirect on edit
Instead of showing a confirmation message, redirect back to the entry view.
add_filter( 'gpeb_edit_confirmation', function ( $confirmation ) {
return array(
'type' => 'redirect',
'url' => \GP_Entry_Blocks\cleaned_current_url(),
);
} );