Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I redirect wp-admin to another url

How can I redirect user from wp-admin to another custom page, for example I want to redirect this url:

http://example.com/wp-admin

to:

http://example.com/custom
like image 684
Resolution Avatar asked Jan 30 '26 03:01

Resolution


1 Answers

wp_redirect( $location, $status );
exit;  

OR try like this

wp_redirect( home_url( '/custom/' ) );
exit();
like image 62
Ram Sharma Avatar answered Jan 31 '26 16:01

Ram Sharma



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!