Find WordPress Version from command line

To find the version of WordPress, you can check the file

wp-includes/version.php

Inside the file look for variable $wp_version

You can do this with the grep command

grep wp_version wp-includes/version.php

Find WordPress version

Using WP CLI

You can use WordPress CLI to find the version of WordPress with the command

wp core version

find WordPress version using wpcli

Back to WordPress

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *