WC_Admin_Notices::maybe_remove_php72_required_notice()private staticWC 1.0

Remove the admin notice about the bump of the required PHP version in WooCommerce 6.5 if the current PHP version is good.

TODO: Remove this method in WooCommerce 6.5.

{} Это метод класса: WC_Admin_Notices{}

Хуков нет.

Возвращает

null. Ничего.

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

$result = WC_Admin_Notices::maybe_remove_php72_required_notice();

Код WC_Admin_Notices::maybe_remove_php72_required_notice() WC 6.4.1

private static function maybe_remove_php72_required_notice() {
	if ( version_compare( phpversion(), '7.2', '>=' ) && self::has_notice( 'php72_required_in_woo_65' ) ) {
		self::remove_notice( 'php72_required_in_woo_65' );
	}
}