frm_delete_message

Back to Top
Knowledge BaseEntry Management → frm_delete_message

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);

Parameters

  • $message (string)
  • $entry (object)

Examples

Formidable Hook - Helpful

Customize Deletion Message

Submitted by  — 8 years ago

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;
}
If you would like to add your own example, click here.

Have something to add?

Click here to provide feedback on this page.