Contact Form 7
[closed] After update "undefined function wpcf7_add_shortcode()" (9 posts)

  1. Matteo Legittimo
    Posted 2 years ago #

    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


  2. Takayuki Miyoshi
    Plugin Author

    Posted 2 years ago #

    Change it to:

    add_action( 'init', 'xxxxx_wpcf7_add_shortcode' );
    function xxxxx_wpcf7_add_shortcode() {
    	wpcf7_add_shortcode('postdropdown', 'createbox', true);
  3. Michael
    Posted 2 years ago #

    This did not solve the problem for me... any other ideas?!

  4. Michael
    Posted 2 years ago #

    Actually, this did it:
    add_action( 'init', 'xxxxx_wpcf7_add_shortcode', 5 ); (adding the '5' for priority)

  5. DDT
    Posted 2 years ago #

    hmm, even adding th 5 didn't help any other suggestions? I updated to 3.5.3

  6. elsclarysse
    Posted 2 years ago #

    I'm having the same problem, updated to 3.5.3. Suggested solution didn't work for me.

  7. fromim
    Posted 2 years ago #

    I'm having the same one, updated to 3.5.4. Please let me know if someone knows the solution.
    Thank you.

  8. DDT
    Posted 2 years ago #

    Any news, fixes? Just upgraded one website

  9. esmi
    Forum Moderator
    Posted 2 years ago #

    @DDT: If you require assistance then, as per the Forum Welcome, please post your own topic. This topic is 6 months old and references an old version of WordPress.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic