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
    		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
    		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