Browse Source

feat: change default redirect behaviour from 'sign in' link (#384)

* Change default redirect behaviour from 'sign in' link

* fix: force redirect to dashboard upon login

Co-authored-by: Felipe Dalcin <felipe.sdalcin@gmail.com>
pull/386/head
Steel Wagstaff 2 years ago committed by GitHub
parent
commit
19d8e100d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      inc/helpers/namespace.php

2
inc/helpers/namespace.php

@ -354,7 +354,7 @@ function get_default_menu( $items = '' ) {
if ( ! is_user_logged_in() ) {
$items .= sprintf(
'<li class="%3$s %3$s-%4$s"><a href="%1$s">%2$s</a></li>',
wp_login_url( get_permalink() ),
wp_login_url( admin_url( 'index.php?page=pb_home_page' ) ),
__( 'Sign In', 'pressbooks-aldine' ),
$item_classes['prefix'],
$item_classes['SignIn']

Loading…
Cancel
Save