Purpose
Replace the generic error message that is shown when a form entry action (open, edit, links, delete) receives no valid entry id — for example because the row was deleted in another tab or the DataTable is stale.
Child plugins can swap the generic “record” wording for domain vocabulary so the message matches what the user sees on screen.
Usage
add_filter( 'wr_form_entry_missing_entry_id_message', array( $this, 'entry_missing_message' ), 10, 5 );Parameters
$message (string): The generic message WR would show.$payload (array): The action payload of the failing request.$form_id (int|null): The form the action targeted, if resolvable.$datatable_identifier (string): Identifier of the DataTable the action came from.$operation (string): One ofopen,edit,links,delete.
Return a non-empty string; empty or non-string return values fall back to the generic message.
Implementation Example
public function entry_missing_message( string $message, array $payload, ?int $form_id, string $dt, string $operation ): string {
if ( $dt === 'yourproject_customer_list' ) {
return __( 'This customer record no longer exists. Please reload the table.', 'yourproject' );
}
return $message;
}