Checkout::get_login_url()
Get the login URL.
Return
(string)
Source
File: src/Tickets/Commerce/Checkout.php
public function get_login_url() {
$login_url = get_site_url( null, 'wp-login.php' );
$login_url = add_query_arg( 'redirect_to', $this->get_url(), $login_url );
/**
* Provides an opportunity to modify the login URL used within frontend
* checkout (typically when they need to login before they can proceed).
*
* @since 5.1.9
*
* @param string $login_url
*/
return apply_filters( 'tec_tickets_commerce_checkout_login_url', $login_url );
}
Changelog
| Version | Description |
|---|---|
| 5.1.9 | Introduced. |