WC_Admin_Notices::add_min_version_notice()
Add notice about minimum PHP and WordPress requirement.
Method of the class: WC_Admin_Notices{}
No Hooks.
Return
null
. Nothing (null).
Usage
$result = WC_Admin_Notices::add_min_version_notice();
Changelog
Since 3.6.5 | Introduced. |
WC_Admin_Notices::add_min_version_notice() WC Admin Notices::add min version notice code WC 9.3.1
public static function add_min_version_notice() { if ( version_compare( phpversion(), WC_NOTICE_MIN_PHP_VERSION, '<' ) || version_compare( get_bloginfo( 'version' ), WC_NOTICE_MIN_WP_VERSION, '<' ) ) { self::add_notice( WC_PHP_MIN_REQUIREMENTS_NOTICE ); } }