Hooks not working on 2.0.15
-
I grabbed this code snippet from the developers section to prevent some random users from signing up.
add_action(‘um_before_new_user_register’, ‘require_google_email_for_signup’);
function require_google_email_for_signup( $args ) {
extract($args);
if ( !strstr( $user_email, ‘@gmail.com’ ) )
exit( wp_redirect( add_query_arg(‘err’, ‘you_must_have_googlemail’) ) );
}This worked fine on ver 1.3.88 but not anymore after updating to the newest version.
Also this hook is breaking too.
add_action(‘um_submit_form_errors_hook_’,’um_custom_validate_username’, 999, 1);
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Hooks not working on 2.0.15’ is closed to new replies.