WC_Plugin_Updates::get_extensions_modal_warning()protectedWC 1.0

Get the warning notice for the modal window.

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_modal_warning();

WC_Plugin_Updates::get_extensions_modal_warning() code WC 8.7.0

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

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