Title: After update &quot;undefined function wpcf7_add_shortcode()&quot;
Last modified: August 21, 2016

---

# After update "undefined function wpcf7_add_shortcode()"

 *  [Matteo Legittimo](https://wordpress.org/support/users/mattleg/)
 * (@mattleg)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/after-update-undefined-function-wpcf7_add_shortcode/)
 * After updating to the last version i get this error:
 * Fatal error: Call to undefined function wpcf7_add_shortcode()
 * I’m calling:
 * wpcf7_add_shortcode(‘postdropdown’, ‘createbox’, true);
 * in my function.php
    Before last update was working. Can u help me please? Thanks
   a lot
 * [http://wordpress.org/extend/plugins/contact-form-7/](http://wordpress.org/extend/plugins/contact-form-7/)

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

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/after-update-undefined-function-wpcf7_add_shortcode/#post-3873903)
 * Change it to:
 *     ```
       add_action( 'init', 'xxxxx_wpcf7_add_shortcode' );
   
       function xxxxx_wpcf7_add_shortcode() {
       	wpcf7_add_shortcode('postdropdown', 'createbox', true);
       }
       ```
   
 *  [Michael](https://wordpress.org/support/users/nikonratm/)
 * (@nikonratm)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/after-update-undefined-function-wpcf7_add_shortcode/#post-3874015)
 * This did not solve the problem for me… any other ideas?!
 *  [Michael](https://wordpress.org/support/users/nikonratm/)
 * (@nikonratm)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/after-update-undefined-function-wpcf7_add_shortcode/#post-3874016)
 * Actually, this did it:
    `add_action( 'init', 'xxxxx_wpcf7_add_shortcode', 5 );`(
   adding the ‘5’ for priority)
 *  [DDT](https://wordpress.org/support/users/ddt/)
 * (@ddt)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/after-update-undefined-function-wpcf7_add_shortcode/#post-3874017)
 * hmm, even adding th 5 didn’t help any other suggestions? I updated to 3.5.3
 *  [elsclarysse](https://wordpress.org/support/users/elsclarysse/)
 * (@elsclarysse)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/after-update-undefined-function-wpcf7_add_shortcode/#post-3874018)
 * I’m having the same problem, updated to 3.5.3. Suggested solution didn’t work
   for me.
 *  [fromim](https://wordpress.org/support/users/fromim/)
 * (@fromim)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/after-update-undefined-function-wpcf7_add_shortcode/#post-3874019)
 * I’m having the same one, updated to 3.5.4. Please let me know if someone knows
   the solution.
    Thank you.
 *  [DDT](https://wordpress.org/support/users/ddt/)
 * (@ddt)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/after-update-undefined-function-wpcf7_add_shortcode/#post-3874020)
 * Any news, fixes? Just upgraded one website
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/after-update-undefined-function-wpcf7_add_shortcode/#post-3874021)
 * **[@ddt](https://wordpress.org/support/users/ddt/)**: If you require assistance
   then, as per the [Forum Welcome](http://codex.wordpress.org/Forum_Welcome#Where_To_Post),
   please post your own topic. This topic is 6 months old and references an old 
   version of WordPress.
 * Closing.

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

The topic ‘After update "undefined function wpcf7_add_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/)

## Tags

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

 * 8 replies
 * 7 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/after-update-undefined-function-wpcf7_add_shortcode/#post-3874021)
 * Status: not resolved