• Skip to primary navigation
  • Skip to main content

Genesis Community

Resources for Genesis WordPress Theme Users

  • Facebook
  • Twitter
  • Slack
  • Wiki
  • Login
You are here: Home / Wikis / Plugins / Enable Honeypot for all new GravityForms forms

Enable Honeypot for all new GravityForms forms

add_action( 'gform_after_save_form', 'leaven_always_enable_honeypot', 10, 2 );
/**
 * Always enable Gravity Forms' anti-spam honeypot.
 * @param $form_meta
 * @param $is_new
 */
function leaven_always_enable_honeypot( $form_meta, $is_new ) {
    if ( ! $is_new ) {
        return;
    }
    $form_meta['enableHoneypot'] = true;
    GFAPI::update_form( $form_meta );
}
Source: https://gist.github.com/sblomberg/fe441a196ba57ef9854102b667000e36
Notes:

via https://genesiswp.slack.com/archives/plugins/p1487019680002022.

Posted by: Sridhar Katakam Category: Plugins Tags: gravity forms

« Dequeue Genesis Portfolio Pro CSS
Add Media Library & Plugins to Main Menu of Admin Bar »

Copyright © 2026 · Genesis Sample on Genesis Framework · WordPress · Log in