Skip to:
Content
Pages
Categories
Search
Top
Bottom

Does this honeypot code still work?


  • flamuren
    Participant

    @flamuren

    Hi,

    I am building a new buddypress website and want to set all spam preventions before going live.

    Does this honeypot code still work for buddypress register page?

    // BuddyPress Honeypot
    function add_honeypot() {
        echo '';
    }
    add_action('bp_after_signup_profile_fields','add_honeypot');
    function check_honeypot() {
        if (!empty($_POST['system55'])) {
            global $bp;
            wp_redirect(home_url());
            exit;
        }
    }
    add_filter('bp_core_validate_user_signup','check_honeypot');

    best regards,
    flamuren

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar