woocommerce_reports_get_order_report_data

woocommerce_reports_get_order_report_data

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_reports_get_order_report_data') is found 2 times:

  • /includes/admin/reports/class-wc-admin-report.php line 362
    359
    360
    361
    362
    363
    364
    365
    366
    367
    if ( $debug || $nocache ) {
        self::enable_big_selects();
     
        $result = apply_filters( 'woocommerce_reports_get_order_report_data', $wpdb->$query_type( $query ), $data );
    } else {
        $query_hash = md5( $query_type . $query );
        $result     = $this->get_cached_query( $query_hash );
        if ( null === $result ) {
            self::enable_big_selects();
  • /includes/admin/reports/class-wc-admin-report.php line 369
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
            $result     = $this->get_cached_query( $query_hash );
            if ( null === $result ) {
                self::enable_big_selects();
     
                $result = apply_filters( 'woocommerce_reports_get_order_report_data', $wpdb->$query_type( $query ), $data );
            }
            $this->set_cached_query( $query_hash, $result );
        }
     
        return $result;
    }