Merge pull request #3929 from leewillis77/is_order_received_page_fix
Fix is_order_received_page()
This commit is contained in:
commit
6716c73f9f
|
@ -152,6 +152,8 @@ if ( ! function_exists( 'is_order_received_page' ) ) {
|
|||
* @return bool
|
||||
*/
|
||||
function is_order_received_page() {
|
||||
global $wp;
|
||||
|
||||
return ( is_page( woocommerce_get_page_id( 'checkout' ) ) && isset( $wp->query_vars['order-received'] ) ) ? true : false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue