Is there a way to display a form in a post editor screen?
-
Hello, I am trying to include a contact form inside of a WooCommerce product editor screen. My line of thinking so far has been something along the lines of this, added in functions.php.
add_action( 'admin_head', 'add_contact_form_to_admin' ); function add_contact_form_to_admin() { echo '<h2>Mail form</h2>'; echo do_shortcode('[contact-form-7 id="6" title="Contact form 1"]'); }
This does display the form. After clicking the submit button, it refreshes the page, but no form is actually sent. I’ve tried other hooks, too.
- The topic ‘Is there a way to display a form in a post editor screen?’ is closed to new replies.