Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
Use this hook to disable the modal popup that is triggered for logged out draft entries.
Usage
add_filter( 'frm_abandonment_logged_out_modal', 'abandonment_logged_out_modal');
Parameters
- $form (int): Form object
Examples
Disable the email modal for logged out draft entries
Use this code example to disable the email modal popup that is triggered for logged out draft entries.
add_filter( 'frm_abandonment_logged_out_modal', 'abandonment_logged_out_modal');
function abandonment_logged_out_modal( $form ) {
if ( $form->id === 1 ) {
return false;
}
return true;
}