Amp_Cart::get_cart_url()
Summary
Gets the URL of the designated cart page.
Return
(string) URL.
Source
File: src/BigCommerce/Amp/Amp_Cart.php
public function get_cart_url() { $cart_page_id = get_option( Settings\Sections\Cart::OPTION_CART_PAGE_ID, 0 ); if ( empty( $cart_page_id ) ) { $url = home_url( '/' ); } else { $url = amp_get_permalink( $cart_page_id ); } /** * Filter the URL to the cart page * * @param string $url The URL to the cart page * @param int $page_id The ID of the cart page */ return apply_filters( 'bigcommerce/cart/permalink', $url, $cart_page_id ); }