is_order_received_page

Is_order_received_page - Returns true when viewing the order received page.

Description

is_order_received_page(); 

Usage

  1. if ( !function_exists( 'is_order_received_page' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-conditional-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = is_order_received_page(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-conditional-functions.php  
  1. function is_order_received_page() { 
  2. global $wp; 
  3.  
  4. return apply_filters( 'woocommerce_is_order_received_page', ( is_page( wc_get_page_id( 'checkout' ) ) && isset( $wp->query_vars['order-received'] ) ) );