Skip to content
Sign in

Tedasuke Reference Numbers for Contact Form 7

Adds a reference number to every message sent through Contact Form 7.

Not scanned yet WordPress plugin

Install in

No install steps yet

Follow the steps on the source page.

This plugin gives every message sent through Contact Form 7 its own reference number, such as 0042, INQ-0042 or 20261121-0042.

Put the mail-tag [_reference_number] wherever the number should appear: in the subject or the body of the mail you receive, in the automatic reply to the visitor, and in the message the visitor sees after sending the form.

Numbers are not wasted

  • A submission with an input error, or one judged to be spam, does not use up a number.
  • If the mail cannot be sent, or another plugin stops the submission, the number is given to the next message instead.
  • When several visitors send the form at the same moment, each message still gets a different number.

Every form counts on its own, in the format you choose

  • A prefix, for example INQ-
  • The number of digits, filled up with zeros (0001)
  • A date inside the number: the year, the year and month, or the year, month and day
  • Reset the count every year, every month, every day, or never
  • The start number
  • Dates and resets follow the time zone of your site (Settings > General), whether it is set as a city or as a UTC offset.

It fits into Contact Form 7

  • The settings are a tab in the Contact Form 7 form editor. No menu item and no separate settings screen are added.
  • If Flamingo is active, the number is kept with the stored message. You can search for it in Flamingo, and it is included in Flamingo’s CSV export. Flamingo is optional.
  • Other plugins and themes can read the number through a function, an action and a filter (see “For developers” below).
  • No outside service is contacted, and nothing is added to the pages your visitors see: no script, no stylesheet.

Contact Form 7 5.9 or later is required.

This plugin is not affiliated with or endorsed by the authors of Contact Form 7 or Flamingo.

How to use

  1. Edit a form under Contact > Contact Forms.
  2. On the Mail tab, put [_reference_number] where you want the number, for example in the subject: [_reference_number] Inquiry from [your-name]. It works the same way in Mail (2), the automatic reply.
  3. To show the number to the visitor, open the Messages tab and add the tag to the text for a successfully sent message, for example: Thank you for your message. Your reference number is [_reference_number].
  4. To change how the number looks, open the Reference Number tab. It also shows the number the next message will get.

Without any settings, numbers look like 0001, 0002, 0003.

For developers

  • tdkrn_get_number() returns the number of the message that is being submitted in the current request, or an empty string. It is available from the wpcf7_before_send_mail action (priority 2 or later) until the end of the request. Until the mail has been sent the number is provisional: if sending fails, the function returns an empty string again and the number goes to the next message.
  • The action tdkrn_number_assigned fires when the mail was sent and the number is final. Example: add_action( 'tdkrn_number_assigned', function ( $number, $contact_form, $sequence ) { /* ... */ }, 10, 3 );
  • The filter tdkrn_number changes how a number looks. Example: add_filter( 'tdkrn_number', function ( $number, $sequence, $form_id, $day ) { return $number . '-W'; }, 10, 4 ); Keep the result unique.
  • The mail-tag is replaced through Contact Form 7’s own wpcf7_special_mail_tags filter, so it also works in any text that another plugin passes through wpcf7_mail_replace_tags() while a message is being sent.

Written by Joobi from the project's own listing. See the source page

contact form 7flamingoinquiry numberreference numberserial number
23 Nov 2026
Version 0.1.0 released. Not scanned yet.

0.1.0

  • First release.
23 Nov 2026Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)