Title: Info about code
Last modified: June 7, 2023

---

# Info about code

 *  [mdmiko](https://wordpress.org/support/users/mdmiko/)
 * (@mdmiko)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/info-about-code/)
 * Hi,
 * i looked up the code becouse i need some mod (add another field). Can you explain
   what’s the $scf_custom_fields variable? It’s intended to add other fields?
   Another
   question if you have time. what is the use of function scf_date_shortcode and
   scf_input_shortcode?
 * I’m asking in case I use it to add a custom input field

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [WPKube](https://wordpress.org/support/users/wpkube/)
 * (@wpkube)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/info-about-code/#post-16804657)
 * Hi [@mdmiko](https://wordpress.org/support/users/mdmiko/)
 * Yes, you can hook into the `scf_custom_fields` filter to output your own code
   in the front-end form. Mainly for your own fields.
 * And then there’s the `scf_custom_email_content` filter which you can use to add
   additional content in the mail that is sent. So you can get the values from the
   fields you added with the previous filter and include them in the email.
 * The shortcode `[simple_contact_form_input]` outputs an input field, but I’m not
   100% sure of it’s purpose at the moment, that was done by the previous owner/
   developer of the plugin. It’s possible that there were plans to allow users to
   easily insert their own fields in the front-end form by using shortcodes. But
   that functionality wasn’t finished.
 * The shortcode `[simple_contact_form_date]` is meant to be used in the “Default
   subject” field in case you want the subject to contain the date of the submission.
 *  Thread Starter [mdmiko](https://wordpress.org/support/users/mdmiko/)
 * (@mdmiko)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/info-about-code/#post-16804727)
 * Thanks a lot for your reply and for your precious work here.
 * Can you point me to an examples on how to add custom field to scf_custom_fields?
   I add some custom html input field, ok… but they need some validation, sanification
   there is any other hook to do it or i’ve to edit `scf_validate_options` function?
 * I’m trying to add also a basic mailchimp integration to add user to a mc list.
   If it works i will give you the code, if it could be useful, basically as single
   php include file as addon
    -  This reply was modified 2 years, 11 months ago by [mdmiko](https://wordpress.org/support/users/mdmiko/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Info about code’ is closed to new replies.

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

 * 2 replies
 * 2 participants
 * Last reply from: [mdmiko](https://wordpress.org/support/users/mdmiko/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/info-about-code/#post-16804727)
 * Status: not resolved