Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @stevied,

    Thanks for contacting us,

    I hope you are doing well, We have forwarded this to our technical team and we will get back to you soon.

    Thanks & Regards

    WP Experts Support Team

    Thread Starter stevied

    (@stevied)

    OK, thanks. Here’s what I’m doing for a workaround with my plugin so that it works with our without New User Approve:

    function plcreb_init() {                                                                                                                                                                                                                // Check if the New User Approve plugin is active                                                                                                                                                                                   if ( ! function_exists( 'is_plugin_active' ) ) {                                                                                                                                                                                        require_once ABSPATH . 'wp-admin/includes/plugin.php';                                                                                                                                                                          }                                                                                                                                                                                                                                   if ( is_plugin_active( 'new-user-approve/new-user-approve.php' ) ) {                                                                                                                                                                           add_action( 'register_post', 'plcreb_check2', 1, 3 );                                                                                                                                                                           } else {                                                                                                                                                                                                                                add_action( 'registration_errors', 'plcreb_check1', 1, 3 );                                                                                                                                                                     }                                                                                                                                                                                                                               }                                                                                                                                                                                                                                   add_action( 'init', 'plcreb_init' );

    But according to the docs, validation should not happen during “regsiter_post” so this fix is not ideal.

    • This reply was modified 2 years ago by stevied.
    Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @stevied,

    Can you please let me know which plugin you are using for Registration Form Validation so we can check compatibility and resolve this?

    Thank you

    Thread Starter stevied

    (@stevied)

    It’s my own plugin that I’m writing.

    But just about any captcha module has the same problem. If the bot fails the captcha, a pending account is still created. So the admin gets tons of annoying email notifications for bot registrations that fail.

    Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @stevied,

    We are unable to replicate the issue on our staging site.

    Could you please share the screencast video of an issue that you are getting?

    Thank you

    Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @stevied,

    We are resolving this thread due to lack of activity if you have any questions so please open a new thread.

    Thank you

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘New users are created before reg. form is validated’ is closed to new replies.