Title: Hook for email_form function
Last modified: October 24, 2016

---

# Hook for email_form function

 *  Resolved [manuplus](https://wordpress.org/support/users/manuplus/)
 * (@manuplus)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/hook-for-email_form-function/)
 * Hi Lester,
 * thanks for your great plugin, using it for few years and really makes a good 
   job.
    I’m redesigning a website using it, and I’d like to use/insert my own CSS
   classes (cannot just override CSS) in the email form. But seems there’s no hook
   in your wp-email.php so I could override it using a filter. Any advise or other
   way to achieve it?

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

 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/hook-for-email_form-function/#post-8347822)
 * Copy out `email-standalone.php` to your theme folder and modify it accordingly?
   In this way the plugin will load from your theme version rather than the plugin’s
   one
 *  Thread Starter [manuplus](https://wordpress.org/support/users/manuplus/)
 * (@manuplus)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/hook-for-email_form-function/#post-8347924)
 * Thanks for youy reply Lester.
    Don’t know if it’s there I can achieve what I 
   want to (or don’t know how).
 * In your wp-email, the interesting part for me is th one that allows to insert
   html, in this function :
 * ### Function: E-Mail Form
    function email_form($content, $echo = true, $subtitle
   = true, $div = true, $error_field = ”) { // … }
 * Could I achieve it in email-standalone.php?
    Thanks for your reply,
 * Manu
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/hook-for-email_form-function/#post-8348170)
 * Yes that is a full HTML page which just loads the email_form() function that 
   replaces the_content()
 *  Thread Starter [manuplus](https://wordpress.org/support/users/manuplus/)
 * (@manuplus)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/hook-for-email_form-function/#post-8348343)
 * I don’t understand your answer, excuse me… Or maybe I turned my question in a
   bad way.
    I’m using the email-popup.php, in which there’s a call to the email
   function (email_form(true))…
 * The part I want to overwrite is the form (html tags and CSS).
    How would it be
   possible in the standalone.php file?!
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/hook-for-email_form-function/#post-8348858)
 * Ah I see, I got your question now. Unfortunately that is not possible to insert
   your own classes via PHP. Alternatively, you can do it via JS when the page is
   loaded, manually use jQuery addClass to add a class to it.
 *  Thread Starter [manuplus](https://wordpress.org/support/users/manuplus/)
 * (@manuplus)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/hook-for-email_form-function/#post-8357544)
 * Hi Lester,
 * ok, thanks for your reply, that’s what I finally made 😉

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

The topic ‘Hook for email_form function’ is closed to new replies.

 * ![](https://ps.w.org/wp-email/assets/icon.svg?rev=978017)
 * [WP-EMail](https://wordpress.org/plugins/wp-email/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-email/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-email/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-email/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-email/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-email/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [hook](https://wordpress.org/support/topic-tag/hook/)

 * 6 replies
 * 2 participants
 * Last reply from: [manuplus](https://wordpress.org/support/users/manuplus/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/hook-for-email_form-function/#post-8357544)
 * Status: resolved