Advertisement
designbymerovingi

thank you based on point type

Jun 7th, 2016
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. add_filter( 'mycred_buycred_thankyou_url', 'mycred_pro_adjust_buycred_thanks' );
  2. function mycred_pro_adjust_buycred_thanks( $url ) {
  3.  
  4. $point_type = 'mycred_default';
  5. if ( isset( $_REQUEST['ctype'] ) )
  6. $point_type = sanitize_key( $_REQUEST['ctype'] );
  7.  
  8. // Return the url for default point type
  9. if ( $point_type == 'mycred_default' )
  10. return home_url( '/consulenten/' );
  11.  
  12. // Return the url for other point types
  13. return home_url( '/e-consults/' );
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement