Merge pull request #7202 from findingsimple/master
Allow devs to filter is_checkout()
This commit is contained in:
commit
bee9c6f6ef
|
@ -113,7 +113,7 @@ if ( ! function_exists( 'is_checkout' ) ) {
|
|||
* @return bool
|
||||
*/
|
||||
function is_checkout() {
|
||||
return is_page( wc_get_page_id( 'checkout' ) ) ? true : false;
|
||||
return is_page( wc_get_page_id( 'checkout' ) ) || apply_filters( 'woocommerce_is_checkout', false ) ? true : false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue