-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpstan-bootstrap.php
More file actions
83 lines (68 loc) · 1.67 KB
/
phpstan-bootstrap.php
File metadata and controls
83 lines (68 loc) · 1.67 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
76
77
78
79
80
81
82
83
<?php
/**
* Static analysis bootstrap.
*
* Provides plugin constants and optional integration functions that normally
* exist only inside a loaded WordPress runtime.
*
* @package Perform
*/
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', __DIR__ . '/' );
}
if ( ! defined( 'WP_CONTENT_FOLDERNAME' ) ) {
define( 'WP_CONTENT_FOLDERNAME', 'wp-content' );
}
if ( ! defined( 'PERFORM_VERSION' ) ) {
define( 'PERFORM_VERSION', '1.6.0' );
}
if ( ! defined( 'PERFORM_PLUGIN_FILE' ) ) {
define( 'PERFORM_PLUGIN_FILE', __DIR__ . '/perform.php' );
}
if ( ! defined( 'PERFORM_PLUGIN_BASENAME' ) ) {
define( 'PERFORM_PLUGIN_BASENAME', 'perform/perform.php' );
}
if ( ! defined( 'PERFORM_PLUGIN_DIR' ) ) {
define( 'PERFORM_PLUGIN_DIR', __DIR__ . '/' );
}
if ( ! defined( 'PERFORM_PLUGIN_URL' ) ) {
define( 'PERFORM_PLUGIN_URL', 'https://example.com/wp-content/plugins/perform/' );
}
if ( ! defined( 'PERFORM_PLUGIN_DOCS_URL' ) ) {
define( 'PERFORM_PLUGIN_DOCS_URL', 'https://performwp.com/docs/' );
}
if ( ! function_exists( 'is_woocommerce' ) ) {
function is_woocommerce(): bool {
return false;
}
}
if ( ! function_exists( 'is_cart' ) ) {
function is_cart(): bool {
return false;
}
}
if ( ! function_exists( 'is_checkout' ) ) {
function is_checkout(): bool {
return false;
}
}
if ( ! function_exists( 'is_account_page' ) ) {
function is_account_page(): bool {
return false;
}
}
if ( ! function_exists( 'is_product' ) ) {
function is_product(): bool {
return false;
}
}
if ( ! function_exists( 'is_product_category' ) ) {
function is_product_category(): bool {
return false;
}
}
if ( ! function_exists( 'is_shop' ) ) {
function is_shop(): bool {
return false;
}
}