woocommerce_api_order_statuses_response

woocommerce_api_order_statuses_response

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

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

apply_filters('woocommerce_api_order_statuses_response') is found 2 times:

  • /includes/legacy/api/v2/class-wc-api-orders.php line 348
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
        foreach ( wc_get_order_statuses() as $slug => $name ) {
            $order_statuses[ str_replace( 'wc-', '', $slug ) ] = $name;
        }
     
        return array( 'order_statuses' => apply_filters( 'woocommerce_api_order_statuses_response', $order_statuses, $this ) );
    }
     
    /**
     * Create an order
     *
     * @since 2.2
  • /includes/legacy/api/v3/class-wc-api-orders.php line 385
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
        foreach ( wc_get_order_statuses() as $slug => $name ) {
            $order_statuses[ str_replace( 'wc-', '', $slug ) ] = $name;
        }
     
        return array( 'order_statuses' => apply_filters( 'woocommerce_api_order_statuses_response', $order_statuses, $this ) );
    }
     
    /**
     * Create an order
     *
     * @since 2.2