Actions and filters

Wordpress documentation on actions and filters.

https://codex.wordpress.org/Plugin_API/Action_Reference

https://codex.wordpress.org/Plugin_API/Filter_Reference

Actions

pre_oc_push_{$contenttype}_update

Parameters: $push_response, a associative array with eventtype, uuid and the actual json data of the push.

Description: Action is triggered when a update event is recieved from Open Content notifier, this action fires before any data has been set to the cache.

oc_push_{$contenttype}_update

Parameters: $push_response, an associative array with eventtype, uuid and the actual json data of the push.

Description: Action is triggered when a update event is recieved from Open Content notifier, this action fires after data in cache has been updated.

oc_push_update (deprecated)

Parameters: $push_response, an associative array with eventtype, uuid and the actual json data of the push.

Description: Action is triggered when an update event is recieved from Open Content notifier, this action fires after data in cache has been updated.

pre_oc_push_{$contenttype}_add

Parameters: $push_response, an associative array with eventtype, uuid and the actual json data of the push.

Description: Action is triggered when an add event is recieved from Open Content notifier, this action fires before any data has been set to the cache.

oc_push_{$contenttype}_add

Parameters: $push_response, an associative array with eventtype, uuid and the actual json data of the push.

Description: Action is triggered when an add event is recieved from Open Content notifier, this action fires after data has been set to the cache.

oc_push_add (deprecated)

Parameters: $push_response, an associative array with eventtype, uuid and the actual json data of the push.

Description: Action is triggered when an add event is recieved from Open Content notifier, this action fires after data has been set to the cache.

pre_oc_push_{$contenttype}_delete

Parameters: $push_response, an associative array with eventtype, uuid and the actual json data of the push.

Description: Action is triggered when a delete event is recieved from Open Content notifier, this action fires before any action has been taken.

oc_push_delete (deprecated)

Parameters: $push_response, an associative array with eventtype, uuid and the actual json data of the push.

Description: Action is triggered when a delete event is recieved from Open Content notifier, this action after action has been taken.

oc_push_{$contenttype}_delete:

Parameters: $push_response, an associative array with eventtype, uuid and the actual json data of the push.

Description: Action is triggered when a delete event is recieved from Open Content notifier, this action after action has been taken.

Filters

ew_apply_default_search_properties

Parameters: $properties = [], starts out with an empty array and lets the developer fill it with their property dependecies.

Description: This filter will run before a request is made to Open Content to let the developer adjust which properties should be fetched. It will only run if no properties were sent to the called function, if properties were specified in the function call they will be used.

ew_apply_required_search_properties

Parameters: $properties = [], _**_the array is populated with properties that Everyware is dependent on, and will let the developer add project specific dependencies.

Description: This filter will run before a request is made to Open Content to let the developer adjust which properties is required.

ew_contenttypes_considered_article

Parameters: $contenttypes = [], _**_the array starts out with "article" as only value.

Description: This filter allows developers to add more content types that should be used as articles in the Everyware plugin.

ew_notifier_update_{$contenttype}_properties

Parameters: $properties = [], _**_the array is populated with the default properties for the contenttype.

Description: This filter is applied when a notification event is received from Open Content Notifier, it will determine if we need to fetch more data from Open Content for the object that was notified. For example this is where you would add hierarchical properties.

ew_notifier_update_{$contenttype}_filter

Parameters: $filter = "", _**_an empty string.

Description: This filter is applied when a notification event is received from Open Content Notifier, it allows developers to add a filter to use against Open Content when fetching object data after a notification.

Last updated