Support » Plugin: Contact Form 7 » Call to a member function add_shortcode()

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Try deactivating all other plugins and switching to the default theme.

    Thanks for the reply, but I wasn’t happy with just deactivating everything. It would appear that the wpcf7_shortcode_manager doesn’t work outside the core, which was causing a conflict with one of my plugins, to fix the issue I added a conditional if to the shortcodes.php file around line 174 thus:

    global $wpcf7_shortcode_manager;
    if(isset($wpcf7_shortcode_manager)){
    return $wpcf7_shortcode_manager->add_shortcode( $tag, $func, $has_name );
    }

    Both plugins now work, may be useful to someone else having the same issues.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Call to a member function add_shortcode()’ is closed to new replies.