spivurno
9/20/2013 - 11:34 PM

GP Auto Login // Remove 'SI CAPTCHA Anti-Spam' plugin's login authentication when auto-logging the user in via the GP Auto Login perk.

GP Auto Login // Remove 'SI CAPTCHA Anti-Spam' plugin's login authentication when auto-logging the user in via the GP Auto Login perk.

<?php
/**
* Remove 'SI CAPTCHA Anti-Spam' plugin's login authentication when auto-logging the user in via the GP Auto Login perk.
*/
add_action( 'gform_user_registered', 'gw_remove_si_authentication' );
function gw_remove_si_authentication() {
    global $si_image_captcha;
    remove_filter('authenticate', array( &$si_image_captcha, 'si_wp_authenticate_username_password'), 9 );
}