Cart::get_url()
Determine the Current cart URL.
Return
(string)
Source
File: src/Tickets/Commerce/Cart.php
public function get_url() {
$url = home_url( '/' );
$url = add_query_arg( [ static::$url_query_arg => $this->get_mode() ], $url );
/**
* Allows modifications to the cart url for Tickets Commerce.
*
* @since 5.1.9
*
* @param string $url URL for the cart.
*/
return (string) apply_filters( 'tec_tickets_commerce_cart_url', $url );
}
Changelog
| Version | Description |
|---|---|
| 5.1.9 | Introduced. |