WC_API_REQUEST

The WooCommerce WC API REQUEST constant.

Value (bool)

true 

Usage

  1. if ( defined( 'WC_API_REQUEST' ) ) { 
  2.  
  3. // grab the value 
  4. $value = constant( 'WC_API_REQUEST' ); 
  5.  
  6. if ( !empty( $value ) ) { 
  7. // go forth and prosper... 
  8.  

Defined (1)

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

/includes/class-wc-legacy-api.php  
  1. define( 'WC_API_REQUEST', true );