Forums

Contact Form DB
[resolved] [Plugin: Contact Form 7 to Database Extension] Stop data entry (3 posts)

  1. janet3b
    Member
    Posted 1 year ago #

    Just wanted to know if there is a function I can use to stop data entry for this plugin. For example if a form is on a certain page I want to completely skip writing to the database using the add_action( 'wpcf7_before_send_mail', '' ); function, is this possible?

    thanks!

    http://wordpress.org/extend/plugins/contact-form-7-to-database-extension/

  2. Michael Simpson
    Member
    Plugin Author

    Posted 1 year ago #

    There is a setting in the Database Options page to exclude forms by name form having their data captured by the plugin. But this is all-or-nothing; it doesn't work on a page-by-page basis.

    Calling add_action( 'wpcf7_before_send_mail', '' ); will not work I expect. You would have to try to remove the plugin's action that it added already and later put that back. I don't think there is an easy way to do that.

  3. janet3b
    Member
    Posted 1 year ago #

    Thanks for the help, i was able to find the hook in the plugin and work from it by relocating it directly into my own function/plugin

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic