Fix is_order_received_page()
This commit is contained in:
parent
0f1a8001cf
commit
1ab404e0e7
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -220,4 +222,4 @@ if ( ! function_exists( 'meta_is_product_attribute' ) ) {
|
|||
|
||||
return ( in_array( $name, array_keys( $attributes ) ) && in_array( $value, $attributes[ $name ] ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue