WC_Webhook::set_delivery_url()publicWC 2.2.0

Set the delivery URL.

Method of the class: WC_Webhook{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Webhook = new WC_Webhook();
$WC_Webhook->set_delivery_url( $url );
$url(string) (required)
Delivery URL.

Changelog

Since 2.2.0 Introduced.

WC_Webhook::set_delivery_url() code WC 8.6.1

public function set_delivery_url( $url ) {
	$this->set_prop( 'delivery_url', esc_url_raw( $url, array( 'http', 'https' ) ) );
}