-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap-functions.php
More file actions
75 lines (68 loc) · 1.94 KB
/
bootstrap-functions.php
File metadata and controls
75 lines (68 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
/**
* Defines module-specific getters and functions.
*
* @since 1.0.0
* @version 1.0.0
* @author Antonius Hegyes <a.hegyes@deep-web-solutions.com>
* @package DeepWebSolutions\WP-Framework\Utilities
*
* @noinspection PhpMissingReturnTypeInspection
*/
namespace DeepWebSolutions\Framework;
\defined( 'ABSPATH' ) || exit;
/**
* Returns the whitelabel name of the framework's utilities within the context of the current plugin.
*
* @since 1.0.0
* @version 1.0.0
*
* @return string
*/
function dws_wp_framework_get_utilities_name() {
return \constant( __NAMESPACE__ . '\DWS_WP_FRAMEWORK_UTILITIES_NAME' );
}
/**
* Returns the version of the framework's utilities within the context of the current plugin.
*
* @since 1.0.0
* @version 1.0.0
*
* @return string
*/
function dws_wp_framework_get_utilities_version() {
return \constant( __NAMESPACE__ . '\DWS_WP_FRAMEWORK_UTILITIES_VERSION' );
}
/**
* Returns the minimum PHP version required to run the Bootstrapper of the framework's utilities within the context of the current plugin.
*
* @since 1.0.0
* @version 1.0.0
*
* @return string
*/
function dws_wp_framework_get_utilities_min_php() {
return \constant( __NAMESPACE__ . '\DWS_WP_FRAMEWORK_UTILITIES_MIN_PHP' );
}
/**
* Returns the minimum WP version required to run the Bootstrapper of the framework's utilities within the context of the current plugin.
*
* @since 1.0.0
* @version 1.0.0
*
* @return string
*/
function dws_wp_framework_get_utilities_min_wp() {
return \constant( __NAMESPACE__ . '\DWS_WP_FRAMEWORK_UTILITIES_MIN_WP' );
}
/**
* Returns whether the utilities package has managed to initialize successfully or not in the current environment.
*
* @since 1.0.0
* @version 1.0.0
*
* @return bool
*/
function dws_wp_framework_get_utilities_init_status() {
return \defined( __NAMESPACE__ . '\DWS_WP_FRAMEWORK_UTILITIES_INIT' ) && \constant( __NAMESPACE__ . '\DWS_WP_FRAMEWORK_UTILITIES_INIT' );
}