Tuesday, September 27, 2022
HomeWordPress Developmentphp - Redirect customers by function to customized pages

php – Redirect customers by function to customized pages


I’ve created a customized login kind that may use the default motion of the wordpress one.
I have to show errors on it if happens however in the intervening time the consumer will probably be redirected to wp-login.php in case of errors. Additionally I would like that customers are redirected to particular web page primarily based on their function, I’ve two customized roles and I would like to point out totally different pages to every single function.

How I can accomplish this, will the login_redirect filter be helpful if I add it in a customized plugin?

Will a customized web page added to dashboard utilizing add_menu_pagemay be exhibited to consumer with no explicit function, or there may be one other technique to exchange the default dashboard?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments