Title: Embed Shortcode
Last modified: August 20, 2016

---

# Embed Shortcode

 *  [tloetz](https://wordpress.org/support/users/tloetz/)
 * (@tloetz)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/embed-shortcode/)
 * Is there a way to embed a shortcode in my contact form that will execute when
   the Submit button is hit?
 * I am trying to use the GoToWebinar Registration plugin in conjunction with Contact
   Form 7 so the user will automatically be registered for a webinar and I will 
   also get an email.

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

 *  [kimipooh](https://wordpress.org/support/users/kimipooh/)
 * (@kimipooh)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/embed-shortcode/#post-2250509)
 * I’m think so, too.
    Then, in my case, I’d like to embed other shortcode to Contact
   form 7.
 * —
    For example.
 * [text* your-name]
 * * Please see [link id=”10″] about the format.
    [text* sample]
 * —
    I’d like to use link information instead of [link id=”10″]. Now, it don’t 
   work.
 * * I found out how to implement it.
    ——
 *     ```
       contact-form-7/includes/classes.php
       	function form_do_shortcode() {
       		global $wpcf7_shortcode_manager;
   
       		$form = $this->form;
   
                       $form = do_shortcode($form);  // ***Added***
   
       		if ( WPCF7_AUTOP ) {
       ```
   
 *  [kimipooh](https://wordpress.org/support/users/kimipooh/)
 * (@kimipooh)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/embed-shortcode/#post-2250522)
 * Sorry for mistaking above code.
    Please forgets above code.
 * Right
 *     ```
       contact-form-7/includes/shortcodes.php
   
       	function do_shortcode( $content, $exec = true ) {
       		$this->exec = (bool) $exec;
       		$this->scanned_tags = array();
   
       		$content = do_shortcode($content); // *** Added **
   
       		if ( empty( $this->shortcode_tags ) || ! is_array( $this->shortcode_tags ) )
       ```
   

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

The topic ‘Embed Shortcode’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [kimipooh](https://wordpress.org/support/users/kimipooh/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/embed-shortcode/#post-2250522)
 * Status: not resolved