Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 14th, 2010  |  syntax: PHP  |  size: 0.31 KB  |  hits: 112  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. //Try in functions.php
  3. function bow_welcomepack_s2member_redirect( $url ) {
  4.   if ( !$WPUser = get_currentuserinfo() )
  5.     return $url;
  6.  
  7.   return dpw_first_login_redirect( $url, '', $WPUser );
  8. }
  9. add_filter( 'ws_plugin__s2member_fill_login_redirect_rc_vars', 'bow_welcomepack_s2member_redirect', 10, 1 );
  10. ?>