dev-master
9999999-devEnvironment helper functions for WordPress themes
MIT
The Requires
- php >=7.0.0
1.0.0
1.0.0.0Environment helper functions for WordPress themes
MIT
The Requires
- php >=7.0.0
Environment helper functions for WordPress themes
Environment helper functions for WordPress themes., (*1)
You can install the package via Composer:, (*2)
composer require mindkomm/theme-lib-environment
Name | Summary | Type | Returns/Description |
---|---|---|---|
is_dev | Checks if we are in a development environment. | bool |
|
is_live | Checks if we are in a live environment. | bool |
|
is_stage | Checks if we are in a stating environment. | bool |
|
is_visitor | Checks whether user is a normal site visitor. | bool |
Checks if we are in a live environment., (*3)
When no environment constant is set, the environment is considered a live environment., (*4)
Returns: bool
, (*5)
Checks whether user is a normal site visitor., (*6)
This is mostly used to include scripts related to analytics and data tracking. For that, we normally do not want to have admin calls and frontend calls made by logged-in users., (*7)
Use this in combination with other environment functions, e.g. is_live()., (*8)
Returns: bool
, (*9)
Checks if we are in a stating environment., (*10)
Returns: bool
, (*11)
Checks if we are in a development environment., (*12)
Returns: bool
, (*13)
This is a library that we use at MIND to develop WordPress themes. Youâre free to use it, but currently, we donât provide any support., (*14)
Environment helper functions for WordPress themes
MIT
Environment helper functions for WordPress themes
MIT