Created
May 15, 2020 20:14
-
-
Save rafsuntaskin/6db7845be0bc84973cb2e140b8369b9d to your computer and use it in GitHub Desktop.
Custom login URL for RSVP and Tickets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Filter default login URL for Tickets and RSVP | |
*/ | |
add_filter( 'tribe_tickets_ticket_login_url', 'rt_et_custom_login_url' ); | |
function rt_et_custom_login_url( $url ) { | |
$parts = wp_parse_url( $url ); | |
$new_url = 'http://Yourlogin.com'; | |
if ( isset( $parts['query'] ) ) { | |
$new_url = $new_url . '?' . $parts['query']; | |
} | |
return $new_url; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment