Browse
For agents
About
HurryTimer – An Scarcity and Urgency Countdown Timer for WordPress & WooCommerce
/
1.2.1
HurryTimer – An Scarcity and Urgency Countdown Timer for WordPress & WooCommerce
v1.2.1
Switch version
2.15.0
trunk
1.0.0
1.0.1
1.1.0
1.1.1
1.1.2
1.1.3
1.2.0
1.2.1
1.2.2
1.2.3
1.2.4
2.0.0
2.0.1
2.0.2
2.0.3
2.0.4
2.1.2
2.1.3
2.1.5
2.1.6
2.1.7
2.1.8
2.10.0
All 62 releases
Overview
Code
hurrytimer
/
includes
/
class-cookie-detection.php
class-cookie-detection.php
in HurryTimer – An Scarcity and Urgency Countdown Timer for WordPress & WooCommerce 1.2.1, at includes/class-cookie-detection.php
20 lines
436 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
1
<
?
php
2
namespace
Hurrytimer
;
3
4
class
Cookie_Detection
5
{
6
const
COOKIE_PREFIX
=
'
_ht_CDT-
'
;
7
8
public
function
find
(
$
countdown_id
)
9
{
10
$
cookie_name
=
self
::
cookie_name
(
$
countdown_id
)
;
11
return
isset
(
$
_COOKIE
[
$
cookie_name
]
)
&&
!
empty
(
$
_COOKIE
[
$
cookie_name
]
)
?
$
_COOKIE
[
$
cookie_name
]
:
null
;
12
}
13
14
public
static
function
cookie_name
(
$
countdown_id
)
15
{
16
return
self
::
COOKIE_PREFIX
.
$
countdown_id
;
17
}
18
19
}
20