• 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

    (@wpkube)

    Hi @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

    (@mdmiko)

    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 1 year, 5 months ago by mdmiko.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Info about code’ is closed to new replies.