WordPress at Your Fingertips
function is not described

WC_Product_External::set_product_url() public WC 3.0.0

Set product URL.

{} It's a method of the class: WC_Product_External{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Product_External = new WC_Product_External();
$WC_Product_External->set_product_url( $product_url );
$product_url(string) (required)
Product URL.

Changelog

Since 3.0.0 Introduced.

Code of WC_Product_External::set_product_url() WC 5.8.0

public function set_product_url( $product_url ) {
	$this->set_prop( 'product_url', htmlspecialchars_decode( $product_url ) );
}