WC_Helper_Updater::add_connect_woocom_plugin_message()public staticWC 1.0

Runs on in_plugin_update_message-{file-name}, show a message to connect to woocommerce.com for unconnected stores

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

Хуков нет.

Возвращает

null..

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

$result = WC_Helper_Updater::add_connect_woocom_plugin_message();

Код WC_Helper_Updater::add_connect_woocom_plugin_message() WC 9.4.2

public static function add_connect_woocom_plugin_message() {
	$connect_page_url = add_query_arg(
		array(
			'page'         => 'wc-admin',
			'tab'          => 'my-subscriptions',
			'path'         => rawurlencode( '/extensions' ),
			'utm_source'   => 'pu',
			'utm_campaign' => 'pu_plugin_screen_connect',
		),
		admin_url( 'admin.php' )
	);

	printf(
		wp_kses(
		/* translators: 1: Woo Update Manager plugin install URL */
			__( ' <a href="%1$s" class="woocommerce-connect-your-store">Connect your store</a> to woocommerce.com to update.', 'woocommerce' ),
			array(
				'a' => array(
					'href'  => array(),
					'class' => array(),
				),
			)
		),
		esc_url( $connect_page_url ),
	);
}