WC_Plugin_Updates::get_extensions_inline_warning_major
Get the inline warning notice for major version updates.
Method of the class: WC_Plugin_Updates{}
No Hooks.
Returns
String.
Usage
// protected - for code of main (parent) or child class $result = $this->get_extensions_inline_warning_major();
WC_Plugin_Updates::get_extensions_inline_warning_major() WC Plugin Updates::get extensions inline warning major code WC 10.7.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();
}