Title: Hard code subject line?
Last modified: July 26, 2023

---

# Hard code subject line?

 *  Resolved [bluedogranch](https://wordpress.org/support/users/bluedogranch/)
 * (@bluedogranch)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/hard-code-subject-line/)
 * Hi,
 * Nice, simple plugin.
 * One question: is it possible to hardcode a subject line via hook or a function?
   I need a specific subject line for the sent emails, and I don’t want the form
   user to be able to add their own subject line.
 * Thanks

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/hard-code-subject-line/#post-16925391)
 * Hey glad to help.
 * To do it:
    1. Disable the Subject field under the “Forms” tab
    2. Go to the “Customize” tab and enter whatever subject line you would like to 
       use for all email, via the setting “Default Subject”.
 * I hope this helps, let me know if I can provide any further information.

Viewing 1 replies (of 1 total)

The topic ‘Hard code subject line?’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-x/assets/icon-256x256.jpg?rev=1889318)
 * [Contact Form X](https://wordpress.org/plugins/contact-form-x/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-x/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-x/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-x/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-x/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-x/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/hard-code-subject-line/#post-16925391)
 * Status: resolved