PHP Class VersionPress\VersionPress

Afficher le fichier Open project: versionpress/versionpress Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

getVersion() public static méthode

Returns VersionPress version as specified in plugin metadata
public static getVersion ( ) : string
Résultat string

isActive() public static méthode

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