• Resolved alwanma27

    (@alwanma27)


    Hello,

    I have created a user registration form and I have set the user approval to be “approved by admin”. In addition, I want to use a code to approve or reject user. Is there anyway to do that?

    Regards
    Thank you

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter alwanma27

    (@alwanma27)

    Hello,

    I have tried to remove the 2 and make it “text-2” but still not working.

    Thank you
    Best regards

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @alwanma27

    Thank you for response!

    I tested it again and yes, you are right. I took another closer look at this code and checked it against our API docs and what I got in DB and the solution here is to make a small change, replacing this line

    Forminator_API::add_form_entries($form_id1, $entry_meta);

    with this

    Forminator_API::add_form_entry($form_id1, $entry_meta);

    This is because you’re actually adding a single entry to the form – even though with multiple fields.

    Note: of course you still need to make sure that field ID’s (like “text-2”, “email-1” etc) and form IDs are correct but other than this, this change should solve the issue for you.

    Best regards,
    Adam

    Thread Starter alwanma27

    (@alwanma27)

    Hello,

    Thank you for your response.

    It works well now and after i have follow your steps:

    `replacing this line

    Forminator_API::add_form_entries($form_id1, $entry_meta);

    with this

    Forminator_API::add_form_entry($form_id1, $entry_meta);`

    Best Regards

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘User registration manual approve’ is closed to new replies.