WC_Helper_Updater::get_product_page_url_from_update_response │ private static │ WC 11.2.0

WooCommerce.com product page URL carried by an update response, or an empty string.

Метод класса: WC_Helper_Updater{}

Хуков нет.

Возвращает

string.

Использование

$result = WC_Helper_Updater::get_product_page_url_from_update_response( $response ): string;
$response(разное) (обязательный)
Update response from the update_plugins transient.

Список изменений

С версии 11.2.0 Введена.

Код WC_Helper_Updater::get_product_page_url_from_update_response() WC 11.2.1

private static function get_product_page_url_from_update_response( $response ): string {
	return is_object( $response ) && ! empty( $response->url ) ? (string) $response->url : '';
}