WC_Admin_Notices::maybe_remove_php72_required_notice()
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 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' ); } }