Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WP Plugins
Cron-Control
Commits
050ee33c
Commit
050ee33c
authored
Feb 17, 2017
by
Erick Hitter
Browse files
Shortcut function for method introduced in
489babaa
parent
489babaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/functions.php
View file @
050ee33c
...
@@ -86,6 +86,16 @@ function event_exists( $timestamp, $action, $instance, $return_id = false ) {
...
@@ -86,6 +86,16 @@ function event_exists( $timestamp, $action, $instance, $return_id = false ) {
return
Events_Store
::
instance
()
->
job_exists
(
$timestamp
,
$action
,
$instance
,
$return_id
);
return
Events_Store
::
instance
()
->
job_exists
(
$timestamp
,
$action
,
$instance
,
$return_id
);
}
}
/**
* Retrieve a single event by ID, or by a combination of its timestamp, instance identifier, and either action or the action's hashed representation
*
* @param array $attributes Array of event attributes to query by
* @return object|false
*/
function
get_event_by_attributes
(
$attributes
)
{
return
Events_Store
::
instance
()
->
get_job
(
$attributes
);
}
/**
/**
* Prevent event store from creating new entries
* Prevent event store from creating new entries
*
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment