woocommerce_api_create_webhook

woocommerce_api_create_webhook

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_api_create_webhook') is found 2 times:

  • /includes/legacy/api/v2/class-wc-api-webhooks.php line 218
     
    			// HTTP 201 Created
    			$this->server->send_status( 201 );
    
    			do_action( 'woocommerce_api_create_webhook', $webhook->get_id(), $this );
    
    			return $this->get_webhook( $webhook->get_id() );
    
    		} catch ( WC_API_Exception $e ) {
    
    			return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => $e->getCode() ) );
    
  • /includes/legacy/api/v3/class-wc-api-webhooks.php line 218
     
    			// HTTP 201 Created
    			$this->server->send_status( 201 );
    
    			do_action( 'woocommerce_api_create_webhook', $webhook->get_id(), $this );
    
    			return $this->get_webhook( $webhook->get_id() );
    
    		} catch ( WC_API_Exception $e ) {
    
    			return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => $e->getCode() ) );