Browse
For agents
About
Simple Analytics
/
1.78
Simple Analytics
v1.78
Switch version
1.109
1.108
1.107
1.106
1.73
1.74
1.75
1.76
1.77
1.78
1.79
1.8
1.80
1.81
1.82
1.83
1.84
1.85
1.86
1.87
1.88
1.89
1.9
1.90
1.91
All 98 releases
Overview
Code
simpleanalytics
/
src
/
Actions
/
Action.php
Action.php
in Simple Analytics 1.78, at src/Actions/Action.php
19 lines
308 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
3
namespace
SimpleAnalytics
\
Actions
;
4
5
trait
Action
6
{
7
protected
function
hook
(
)
:
string
8
{
9
return
$
this
->
hook
;
10
}
11
12
public
static
function
register
(
...
$
args
)
:
void
13
{
14
$
instance
=
new
static
(
...
$
args
)
;
15
16
add_action
(
$
instance
->
hook
(
)
,
[
$
instance
,
'
handle
'
]
)
;
17
}
18
}
19