Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
WC_Tracker::get_wordpress_info()
Get WordPress related data.
Description Description
Return Return
(array)
Source Source
File: includes/class-wc-tracker.php
private static function get_wordpress_info() { $wp_data = array(); $memory = wc_let_to_num( WP_MEMORY_LIMIT ); if ( function_exists( 'memory_get_usage' ) ) { $system_memory = wc_let_to_num( @ini_get( 'memory_limit' ) ); $memory = max( $memory, $system_memory ); } $wp_data['memory_limit'] = size_format( $memory ); $wp_data['debug_mode'] = ( defined( 'WP_DEBUG' ) && WP_DEBUG ) ? 'Yes' : 'No'; $wp_data['locale'] = get_locale(); $wp_data['version'] = get_bloginfo( 'version' ); $wp_data['multisite'] = is_multisite() ? 'Yes' : 'No'; return $wp_data; }