woocommerce_is_order_received_page

Is_order_received_page - Returns true when viewing the order received page.

Description

apply_filters( 'woocommerce_is_order_received_page', (unknown) $is_page_wc_get_page_id_checkout_isset_wp_query_vars_order_received ); 

Parameters (1)

0. $is_page_wc_get_page_id_checkout_isset_wp_query_vars_order_received (unknown) => ( is_page( wc_get_page_id( 'checkout' ) ) && isset( $wp->query_vars['order-received'] ) )
The is page wc get page id checkout isset wp query vars order received.

Usage

To run the hook, copy the example below.
  1. $is_page_wc_get_page_id_checkout_isset_wp_query_vars_order_received = apply_filters( 'woocommerce_is_order_received_page', $is_page_wc_get_page_id_checkout_isset_wp_query_vars_order_received ); 
  2.  
  3. if ( !empty( $is_page_wc_get_page_id_checkout_isset_wp_query_vars_order_received ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the woocommerce_is_order_received_page callback 
  2. function filter_woocommerce_is_order_received_page( $is_page_wc_get_page_id_checkout_isset_wp_query_vars_order_received ) { 
  3. // make filter magic happen here... 
  4. return $is_page_wc_get_page_id_checkout_isset_wp_query_vars_order_received
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'woocommerce_is_order_received_page', 'filter_woocommerce_is_order_received_page', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'woocommerce_is_order_received_page', 'filter_woocommerce_is_order_received_page', 10, 1 ); 

Defined (1)

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

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