woocommerce_get_checkout_url
Usage
add_filter( 'woocommerce_get_checkout_url', 'wp_kama_woocommerce_get_checkout_url_filter' ); /** * Function for `woocommerce_get_checkout_url` filter-hook. * * @param $checkout_url * * @return */ function wp_kama_woocommerce_get_checkout_url_filter( $checkout_url ){ // filter... return $checkout_url; }
- $checkout_url
- -
Where the hook is called
woocommerce_get_checkout_url
woocommerce/includes/wc-core-functions.php 1523
return apply_filters( 'woocommerce_get_checkout_url', $checkout_url );