WP-CLI

A command line interface for WordPress

Docs » Internal API » Misc

WP_CLI\Utils\get_named_sem_ver()

Compare two version strings to get the named semantic version.


Usage

WP_CLI\Utils\get_named_sem_ver( $new_version, $original_version )
$new_version (string)
$original_version (string)
@return (string) 'major', 'minor', 'patch'

Internal API documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request.