woocommerce_api_server_before_serve

woocommerce_api_server_before_serve

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

do_action('woocommerce_api_server_before_serve') is found 3 times:

  • /includes/legacy/api/v1/class-wc-api-server.php line 206
    	 * @uses WC_API_Server::dispatch()
    	 */
    	public function serve_request() {
    
    		do_action( 'woocommerce_api_server_before_serve', $this );
    
    		$this->header( 'Content-Type', $this->handler->get_content_type(), true );
    
    		// the API is enabled by default
    		if ( ! apply_filters( 'woocommerce_api_enabled', true, $this ) || ( 'no' === get_option( 'woocommerce_api_enabled' ) ) ) {
    
    
  • /includes/legacy/api/v2/class-wc-api-server.php line 204
    	 * @uses WC_API_Server::dispatch()
    	 */
    	public function serve_request() {
    
    		do_action( 'woocommerce_api_server_before_serve', $this );
    
    		$this->header( 'Content-Type', $this->handler->get_content_type(), true );
    
    		// the API is enabled by default
    		if ( ! apply_filters( 'woocommerce_api_enabled', true, $this ) || ( 'no' === get_option( 'woocommerce_api_enabled' ) ) ) {
    
    
  • /includes/legacy/api/v3/class-wc-api-server.php line 204
    	 * @uses WC_API_Server::dispatch()
    	 */
    	public function serve_request() {
    
    		do_action( 'woocommerce_api_server_before_serve', $this );
    
    		$this->header( 'Content-Type', $this->handler->get_content_type(), true );
    
    		// the API is enabled by default
    		if ( ! apply_filters( 'woocommerce_api_enabled', true, $this ) || ( 'no' === get_option( 'woocommerce_api_enabled' ) ) ) {