PHP Class VersionPress\VersionPress

Show file Open project: versionpress/versionpress Class Usage Examples

Public Methods

Method Description
getEnvironment ( ) : string Returns name of current environment (default for original site, clone name for clone).
getVersion ( ) : string Returns VersionPress version as specified in plugin metadata
isActive ( ) : boolean Returns true if VersionPress is active. Note that active != activated and being active means that VersionPress is tracking changes.

Method Details

getEnvironment() public static method

Returns name of current environment (default for original site, clone name for clone).
public static getEnvironment ( ) : string
return string

getVersion() public static method

Returns VersionPress version as specified in plugin metadata
public static getVersion ( ) : string
return string

isActive() public static method

Returns true if VersionPress is active. Note that active != activated and being active means that VersionPress is tracking changes.
public static isActive ( ) : boolean
return boolean