• Resolved Muhammad Qureshi

    (@thequreshi)


    Hi,

    Thank you for this plugin. I have a question: nua_user_approved and nua_user_denied are being auto-loaded in wp_options. Can we set them to ‘no’?

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

    (@hamza1010)

    Hello @thequreshi,

    Thanks for contacting us,

    I hope you are doing well, These options are in the legacy code category in the New User Approve and we have already implemented the improvements for this Zapier integration functionality we will improve it further to remove these options in the upcoming release of New User Approve, Now you can make the autoload OFF by adding the given code in the functions.php of the active theme.

    Here is the code:

    add_action('new_user_approve_activate', function () {

    $nua_zap_pending = get_option('nua_user_pending', false);
    $nua_zap_approved = get_option('nua_user_approved', false);
    $nua_zap_denied = get_option('nua_user_denied', false);

    if(false != $nua_zap_pending) {
    delete_option('nua_user_pending');
    update_option('nua_user_pending', $nua_zap_pending, 'no');
    }
    if(false != $nua_zap_approved) {
    delete_option('nua_user_approved');
    update_option('nua_user_approved', $nua_zap_approved, 'no');
    }
    if(false != $nua_zap_denied) {
    delete_option('nua_user_denied');
    update_option('nua_user_denied', $nua_zap_denied, 'no');
    }
    });

    Please Note: You need to Re-activate the plugin.

    If you have any questions, feel free to reach out. We’re here to assist you.

    Thanks & Regards
    WP Experts Support Team

    Thread Starter Muhammad Qureshi

    (@thequreshi)

    Thanks Hamza!

    Plugin Support Mirza Hamza

    (@hamza1010)

    We would greatly appreciate your kind and honest review. Your feedback is important to us and can help other users make informed decisions about our product and services. Thank you for taking the time to share your thoughts.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.