Custom redirect after admin approval/deny
-
Hello,
i’ve tried to reach you directly from you site after a purchase with the “feature request” action but looks like that the message went lost so i’ll try to post it here.When an admin approve/deny a user it gets redirected to the users.php page with approved or denied = 1 as query args.
For a customer we would need to be able to choose where it get’s redirected after an approval/denial action has been done.
Inside file wp-content/plugins/user-registration/includes/admin/class-ur-admin-user-list-manager.php there’s a function called “trigger_query_actions” which ends with:
wp_safe_redirect( esc_url_raw( $redirect ) );
We would simply need an apply_filter there so that we can hook into it and customize the redirect, should be a very quick and safe addition to make.
wp_safe_redirect( esc_url_raw( apply_filters('user_registration_admin_action_redirect',$redirect) ) );
Could you please do it? Atm we are forced to edit the core file and as we all know it’s not a good practice.
- The topic ‘Custom redirect after admin approval/deny’ is closed to new replies.