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 change the message shown after an entry is deleted from the front-end.
Usage
add_filter('frm_delete_message', 'customize_delete_message', 10, 2); function customize_delete_message($message, $entry)
Parameters
- $message (string) - The message to show
- $entry (object)
Examples
Customize Deletion Message
add_filter('frm_delete_message', 'customize_delete_message', 10, 2);
function customize_delete_message($message, $entry) {
if ( $entry->form_id == 216 ) {//Change 216 to the ID of your form
$message = 'Item successfully removed from favorites';
}
return $message;
}