• Resolved pstidsen

    (@pstidsen)


    Hi there,

    I would like to ask if it is possible to tweak the plugin to be able to do the following two things:

    • Add a couple of custom fields in the registration form – or should I use another plugin for customizing the form?
    • Do something programmatically with the user permissions after approval (based on the data from the custom fields in registration form).

    Are something like that possible?

    Best Regards,
    Peter

Viewing 1 replies (of 1 total)
  • Plugin Support muddasirhayat

    (@muddasirhayat)

    Hi @pstidsen,

    Thank you for contacting us. We hope you are well.

    For your first point, our plugin currently doesn’t support adding custom fields to the registration form directly.

    For the second point, if you want to run some custom code after a user is approved, our plugin provides a hook you can use. The do_action hook. Below is triggered after a user is approved, and it passes the $user object as an argument:

    // Example Code

    add_action( 'new_user_approve_user_approved', function( $user ) {
    update_user_meta( $user->ID, 'approved_by', get_current_user_id() );
    });

    Thank you

Viewing 1 replies (of 1 total)

The topic ‘Tweaking the plugin’ is closed to new replies.