Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 16th, 2010  |  syntax: PHP  |  size: 0.34 KB  |  views: 127  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. //Put in functions.php
  3. function bow_welcomepack_s2member_redirect( $url, $login_info ) {
  4.   if ( !$login_info['current_user'] )
  5.     return $url;
  6.  
  7.   return dpw_first_login_redirect( $url, '', $login_info['current_user'] );
  8. }
  9. add_filter( 'ws_plugin__s2member_fill_login_redirect_rc_vars', 'bow_welcomepack_s2member_redirect', 10, 2 );
  10. ?>