• Resolved rohans

    (@rohans)


    The email an admin receives has a link that they can click on, to approve a user. We use multisite, and when an admin click on this link, all they see is a list of the site users, no filtered list of users to approve.

    How can I override this link? I want to send them to this link, where the list of awaiting users are.

    /wp-admin/admin.php?page=new-user-approve-admin

    The page I need help with: [log in to see the link]

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

    (@hamza1010)

    Hello @rohans,

    Thanks for contacting us,

    I hope you are doing well, We’ve informed our technical team about your issue, and they will work on it promptly. When we receive their response, we will get back to you. Our team is here to assist you. Thank you for your patience.

    Thanks & Regards
    WP Experts Support Team

    Plugin Support Mirza Hamza

    (@hamza1010)

    Hello @rohans,

    We understand that you want to replace the link of the default users list with the users list interface of New User Approve in the New User Approve Admin Approval Email, please find the attached snippet of code which you should add in functions.php file of active child theme. if you still have any issues please feel free to reach out.

    Here is the code:

    // nua code to replace the link of default wp users list with the user list of New User Approve in admin approval email
    add_filter('new_user_approve_notification_message_default', 'nua_change_users_link');
    
    function test($message) {
    	$message = str_replace('{admin_approve_url}', get_admin_url() . 'admin.php?page=new-user-approve-admin' , $message);
    	return $message;
    }
    
    

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Admin URL’ is closed to new replies.