WordPress at Your Fingertips
function is not described

WC_Plugin_Updates::get_extensions_inline_warning_major() protected WC 1.0

Get the inline warning notice for major version updates.

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

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_extensions_inline_warning_major();

Code of WC_Plugin_Updates::get_extensions_inline_warning_major() WC 5.9.0

protected function get_extensions_inline_warning_major() {
	$upgrade_type  = 'major';
	$plugins       = $this->major_untested_plugins;
	$version_parts = explode( '.', $this->new_version );
	$new_version   = $version_parts[0] . '.0';

	if ( empty( $plugins ) ) {
		return;
	}

	/* translators: %s: version number */
	$message = sprintf( __( "<strong>Heads up!</strong> The versions of the following plugins you're running haven't been tested with WooCommerce %s. Please update them or confirm compatibility before updating WooCommerce, or you may experience issues:", 'woocommerce' ), $new_version );

	ob_start();
	include __DIR__ . '/views/html-notice-untested-extensions-inline.php';
	return ob_get_clean();
}