Skip to content
wpbeaches
  • Home
  • About
  • Services
  • Work
    • Template Library
    • Web Development
    • Portfolio
  • Contact
  • Blog
    • ACF
    • Beaver
      • Beaver Builder
      • Beaver Theme
      • Beaver Themer
    • Genesis
    • jQuery
    • macOS
    • WordPress
    • WooCommerce

Redirect an admin user role on login with login redirect

January 9, 2021 - 2 Comments
Force Admin Wordpress Redirect

You can redirect a user based on their WordPress role with the login_redirect filter. add_filter( ‘login_redirect’, ‘themeprefix_login_redirect’, 10, 3 ); /** * Redirect user after successful login. * * @param string $redirect_to URL to redirect to. * @param string $request URL the user is coming from. * @param object $user Logged user’s data. * @return…

Read More
Categorized WordPress Tagged login_redirect
Get Beaver Builder Now!

Tags

ACF apache archive beaver beaver builder beaver theme beaver themer bootstrap cache category checkout cpt css customizer filter flexbox footer form genesis header homebrew htaccess iconfonts image javascript jquery loop markup menu meta mysql php pre_get_posts repeater search filter pro serverpilot shortcode slider taxonomy template UI/UX while widget woocommerce wp-cli

Donate

If you found something that helped you out and would like to make a donation, that's great

PowerPack Beaver Builder Addon

Our Location

We are based in the Northern Beaches of Sydney and work with both local and overseas based clients.

Work With Us

Let us know your web requirements, see our services and use the contact form to get in touch and start the ball rolling.

Check Us Out

  • Home
  • Blog
  • About
  • Services

© 2017 · NEIL GOWRAN · POWERED BY WORDPRESS, BEAVER, AND HOSTED ON RUNCLOUD AND RACKNERD

Scroll To Top