Merge pull request #13207 from duracelltomi/master

Adding WP filter to is_order_received_page()
This commit is contained in:
Mike Jolley 2017-02-16 10:12:05 +00:00 committed by GitHub
commit 1b2bdf7bfd
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ if ( ! function_exists( 'is_order_received_page' ) ) {
function is_order_received_page() {
global $wp;
return ( is_page( wc_get_page_id( 'checkout' ) ) && isset( $wp->query_vars['order-received'] ) );
return apply_filters( 'woocommerce_is_order_received_page', ( is_page( wc_get_page_id( 'checkout' ) ) && isset( $wp->query_vars['order-received'] ) ) );
}
}