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

Method of the class: WC_Helper_Updater{}

No Hooks.

Return

null..

Usage

$result = WC_Helper_Updater::add_connect_woocom_plugin_message();

WC_Helper_Updater::add_connect_woocom_plugin_message() code WC 8.9.0

public static function add_connect_woocom_plugin_message() {
	$connect_page_url = add_query_arg(
		array(
			'page' => 'wc-admin',
			'tab'  => 'my-subscriptions',
			'path' => rawurlencode( '/extensions' ),
		),
		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 ),
	);
}