Merge pull request #7202 from findingsimple/master

Allow devs to filter is_checkout()
This commit is contained in:
Mike Jolley 2015-01-26 11:28:32 +00:00
commit bee9c6f6ef
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}