WordPress at a glance
function is not described


Version_Selector::is_dev_version() public WC 1.0

Checks whether the given package version is a development version.

{} It's a method of the class: Version_Selector{}

No Hooks.


true|false. True if the version is a dev version, else false.


$Version_Selector = new Version_Selector();
$Version_Selector->is_dev_version( $version );
$version(string) (required)
The package version.

Code of Version_Selector::is_dev_version() WC 5.3.0

public function is_dev_version( $version ) {
	if ( 'dev-' === substr( $version, 0, 4 ) || '9999999-dev' === $version ) {
		return true;

	return false;