Quite often a time, we all wish to gather more information about our WordPress installation as well as server environment. While, it will be a bit difficult for a non-techie to find out the same but on using the following snippet, the whole process will get a huge in ease and results in letting you finding the basic information about your WordPress installation.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | <h3>Wordpress Debug Info:</h3> <p><strong>NOTE: </strong>You will see <em>either</em> a Timezone String <em>or</em> a GMT Offset -- not both.</p> <ul> <li>PHP Version on this server: <?php echo phpversion(); ?></li> <li>WordPress core version: <?php bloginfo( 'version' ); ?></li> <li>WordPress Timezone String: <?php echo get_option('timezone_string'); ?></li> <li>WordPress GMT Offset: <?php echo get_option('gmt_offset'); ?></li> <li>WordPress Date Format: <?php echo get_option('date_format'); ?></li> <li>WordPress Time Format: <?php echo get_option('time_format'); ?></li> </ul> </div> <h3>Wordpress Debug Info:</h3> <p><strong>NOTE: </strong>You will see <em>either</em> a Timezone String <em>or</em> a GMT Offset -- not both.</p> <ul> <li>PHP Version on this server: <?php echo phpversion(); ?></li> <li>WordPress core version: <?php bloginfo( 'version' ); ?></li> <li>WordPress Timezone String: <?php echo get_option('timezone_string'); ?></li> <li>WordPress GMT Offset: <?php echo get_option('gmt_offset'); ?></li> <li>WordPress Date Format: <?php echo get_option('date_format'); ?></li> <li>WordPress Time Format: <?php echo get_option('time_format'); ?></li> </ul> </div> |
Snippet Source/Credit: webaces.co.uk