Title: Edit title for admin email
Last modified: August 22, 2016

---

# Edit title for admin email

 *  Resolved [rei15](https://wordpress.org/support/users/rei15/)
 * (@rei15)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/edit-title-for-admin-email/)
 * Hi,
 * I’m using Trust Form, and i would like to customize that the automatically response
   email to admin is changed according to the input data.
 * Example)
    Title = Incoming Inquiry (Software)
 * The part “Software” is the value checked in my form.
 * Is there anyway i could do it?
    I’ve checked on github on how to add the filter
   for adding id to the subject. [https://gist.github.com/horike37/7410391](https://gist.github.com/horike37/7410391)
 *     ```
       <?php
       add_filter( 'tr_subject_admin_mail', 'my_tr_subject_admin_mail', 10, 3 );
       function my_tr_subject_admin_mail( $subject, $data, $id ) {
           $responce = get_post_meta( $id, 'answer' );
           krsort($responce);
           $entry_id = key($responce);
           return $subject . '[id:'.$entry_id.']';
       }
       add_filter( 'tr_subject_admin_mail', 'my_tr_subject_admin_mail', 10, 3 );
       ```
   
 * but i couldnt figure out how to get the value of the checked box.
    I would appreciate
   for any documentation on the variable passed to tr_subject_admin_main (What’s
   10 or 3). Thank you.
 * [https://wordpress.org/plugins/trust-form/](https://wordpress.org/plugins/trust-form/)

The topic ‘Edit title for admin email’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/trust-form_ffffff.svg)
 * [Trust Form](https://wordpress.org/plugins/trust-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/trust-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/trust-form/)
 * [Active Topics](https://wordpress.org/support/plugin/trust-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/trust-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/trust-form/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [rei15](https://wordpress.org/support/users/rei15/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/edit-title-for-admin-email/)
 * Status: resolved