views:

18

answers:

1

Hi all,

I looked through the Wordpress Hook DB and couldn't find any way to change the page that wordpress redirects to after editing a user... Does anyone know of a hook that will do this, or of another way I could accomplish the same thing?

+1  A: 

You can filter wp_redirect only on user-edit.php;

function my_user_edit_redirect($location)
{
    return admin_url('somewhere/else.php');
}
add_action('load-user-edit.php', create_function('', '
    add_filter("wp_redirect", "my_user_edit_redirect");'));
TheDeadMedic
nice! Thanks a lot.
Dennis Pedrie