Skip to content

moldovan.IT

no tagline here

  • how to
  • news

Tags

  • 301
  • 403
  • 2015
  • ad
  • admin
  • analytics
  • banner
  • blog
  • DFP
  • div
  • doc
  • docx
  • dropper
  • email
  • extension
  • file
  • flash
  • Gene McKenna
  • google
  • groupon
  • HTML
  • index
  • IRS
  • javascript
  • js
  • linux
  • login
  • logout
  • malware
  • multisite
  • p7s
  • plugin
  • redirect
  • registration
  • seo
  • site
  • spam
  • theme
  • timeline
  • trojan
  • tweet
  • twitter
  • ubuntu
  • widget
  • wordpress

Tag: logout

redirect user after login, logout and registration in WordPress using Ideas theme

redirect after login

in \wp-content\themes\ideas\form-login.php replace this line (46 on my site)

1
<input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect ); ?>" />

with this one

1
<input type="hidden" name="redirect_to" value="http://domain.com/redirect_page/" />

redirect on logout

in \wp-content\themes\ideas\includes\header.php replace get_permalink() in this line (32 on my site)

1
'logout' => html( 'a', array( 'href' => wp_logout_url( get_permalink() ) ), __( 'Logout', APP_TD ) ),

with the redirect url like this

1
'logout' => html( 'a', array( 'href' => wp_logout_url( 'http://domain.com/redirect_page/' ) ), __( 'Logout', APP_TD ) ),

redirect after registration

in \wp-content\themes\ideas\form-registration.php replace this line (73 on my site)

1
<input type="hidden" name="redirect_to" value="<?php echo esc_attr($redirect); ?>" />

with this one

1
<input type="hidden" name="redirect_to" value="http://e-picus.com/aplicatie/proiecte/chestionar-videointerfon-security/" />

 

Posted on September 28, 2015Categories how toTags login, logout, redirect, registration, theme, wordpressLeave a comment on redirect user after login, logout and registration in WordPress using Ideas theme
Proudly powered by WordPress