• Resolved Sirion89

    (@sirion89)


    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @sirion89,

    Thank you for writing in,

    As you have mentioned, the hook is not available. Please add your hook to the core file. We will include this hook in our upcoming plugin version, so your changes will remain.

    We will mark this thread as resolved. If needed, please create a new one. We will get back to you as soon as possible.

    Regards!

    Thread Starter Sirion89

    (@sirion89)

    Hello,
    any news on this? We’ve got the pro version and it looks like there are no updates for it, although there is one the for the free version

    Thread Starter Sirion89

    (@sirion89)

    Hello,
    i’ve seen that two plugins updated has been released but the hook is still missing. I had to modify the core file again ??

    Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @sirion89,

    Sorry for the inconvenience,

    According to the WordPress Support community guidelines, we can not provide premium support here.

    Would you please check this link https://wpeverest.com? You will get the live chat option. Contact us with this forum link. Our team will get back to you as soon as possible.

    Regards!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom redirect after admin approval/deny’ is closed to new replies.