Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'mycred_buycred_thankyou_url', 'mycred_pro_adjust_buycred_thanks' );
- function mycred_pro_adjust_buycred_thanks( $url ) {
- $point_type = 'mycred_default';
- if ( isset( $_REQUEST['ctype'] ) )
- $point_type = sanitize_key( $_REQUEST['ctype'] );
- // Return the url for default point type
- if ( $point_type == 'mycred_default' )
- return home_url( '/consulenten/' );
- // Return the url for other point types
- return home_url( '/e-consults/' );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement