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

Advertisement

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
Add a comment

Leave a Reply

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

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Advertisement