woocommerce_api_default_response_handler

woocommerce_api_default_response_handler

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

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

apply_filters('woocommerce_api_default_response_handler') is found 3 times:

  • /includes/legacy/api/v1/class-wc-api-server.php line 146
    			$handler_class = 'WC_API_JSON_Handler';
    		} elseif ( $this->is_xml_request() ) {
    			$handler_class = 'WC_API_XML_Handler';
    		} else {
    			$handler_class = apply_filters( 'woocommerce_api_default_response_handler', 'WC_API_JSON_Handler', $this->path, $this );
    		}
    
    		$this->handler = new $handler_class();
    	}
    
    	/**
    
  • /includes/legacy/api/v2/class-wc-api-server.php line 140
    			$this->method = $_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE'];
    		}
    
    		// load response handler
    		$handler_class = apply_filters( 'woocommerce_api_default_response_handler', 'WC_API_JSON_Handler', $this->path, $this );
    
    		$this->handler = new $handler_class();
    	}
    
    	/**
    	 * Check authentication for the request
    
  • /includes/legacy/api/v3/class-wc-api-server.php line 140
    			$this->method = $_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE'];
    		}
    
    		// load response handler
    		$handler_class = apply_filters( 'woocommerce_api_default_response_handler', 'WC_API_JSON_Handler', $this->path, $this );
    
    		$this->handler = new $handler_class();
    	}
    
    	/**
    	 * Check authentication for the request