Support » Plugin: Contact Form 7 Honeypot » Contact Form 4.6 deprecates the wpcf7_add_shortcode functio

  • Resolved leemon

    (@leemon)


    Hi!

    The latest version of Contact Form has deprecated the wpcf7_add_shortcode function, which your plugin uses.

    In case anyone is interested, the following line:

    wpcf7_add_shortcode( 'honeypot', 'wpcf7_honeypot_shortcode_handler', true );

    has to be changed to:

    wpcf7_add_form_tag( 'honeypot', 'wpcf7_honeypot_shortcode_handler', true );

Viewing 11 replies - 1 through 11 (of 11 total)
  • leemon

    (@leemon)

    Also,

    Lines 91 and 131 must be changed from:

    $tag = new WPCF7_Shortcode( $tag );

    to:

    $tag = new WPCF7_FormTag( $tag );

    Plugin Author Ryan

    (@daobydesign)

    Cheers @leemon! Am working on an update that will roll in the new CF7 version 4.6 function depreciation changes. Watch for it later today.

    leemon

    (@leemon)

    Great! Thanks!

    agermanucf

    (@agermanucf)

    What file(s) do I change those lines in?

    Plugin Author Ryan

    (@daobydesign)

    @agermanucf no need to change anything. Simply update the plugin with today’s release (v1.10).

    agermanucf

    (@agermanucf)

    ok thanks! Just did…although my primary issue is not fixed (missing admin top bar when viewing pages/posts outside of dashboard), so I guess it’s not CF7. Although that’s the only thing that showed in the error log, so I guess I will keep investigating. Thanks

    Plugin Author Ryan

    (@daobydesign)

    Hmm, yeah, this wouldn’t fix whatever’s causing that, as this was simply a depreciation notice. Shouldn’t have had any affect on page loading (though a notice would have appeared if you have DEBUG set to true in your settings).

    On the outside chance that you haven’t, check your User Profile and confirm that you don’t have the admin bar disabled for that user.

    agermanucf

    (@agermanucf)

    Thanks for the reply. I did turn on debugging as a last resort trying to find the issue. I went through the steps here http://www.howtosolutions.net/2016/09/wordpress-missing-admin-bar-toolbar/ and the user profile is the 1st step it mentions.

    siddharththorat

    (@siddharththorat)

    I’m using a CF7, but it is giving message “Failed to send your message. Please try later or contact the administrator by another method”. and I have added condional logic for radio button (if clccked yes then text box is editable otherwise Read-only), on Submitting form it is giving validational error message as i have removed required for text box.
    Can anyone suggest me what to do.

    siddharththorat

    (@siddharththorat)

    I’m using a CF7, but it is giving message “Failed to send your message. Please try later or contact the administrator by another method”. and I have added condtional logic for radio button (if clicked yes then text box is editable otherwise Read-only), on Submitting form it is giving validational error message as i have removed required for text box.
    Can anyone suggest me what to do.

    Plugin Author Ryan

    (@daobydesign)

    @siddharththorat, two things:

    1) Please always open a new thread — your message is unrelated to this thread.
    2) It sounds like your looking for CF7 support. This is not the CF7 support form.

    If you are using the CF7 Honeypot plugin and feel it might be the reason for the problems you are facing (i.e. you remove all your additional functionality, and still have problems only with a basic form and the honeypot field), please open a new support thread here.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Contact Form 4.6 deprecates the wpcf7_add_shortcode functio’ is closed to new replies.