WC_Helper_Updater::get_product_page_url │ private static │ WC 11.2.0

WooCommerce.com product page URL for a plugin, from the update data Core already holds.

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

Хуков нет.

Возвращает

string. The product page URL, or an empty string when the update data carries none.

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

$result = WC_Helper_Updater::get_product_page_url( $plugin_file ): string;
$plugin_file(строка) (обязательный)
Path to the plugin file relative to the plugins directory.

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

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

Код WC_Helper_Updater::get_product_page_url() WC 11.2.1

private static function get_product_page_url( $plugin_file ): string {
	$updates = get_site_transient( 'update_plugins' );

	return self::get_product_page_url_from_update_response( $updates->no_update[ $plugin_file ] ?? $updates->response[ $plugin_file ] ?? null );
}