coreactivity_event_logged_{$component}_{$event}

Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

Definition
do_action( "coreactivity_event_logged_{$component}_{$event}", $id, $data, $meta, $event );
Arguments
Name
Type
Description
$id
int
ID of the log entry
$data
array
main data array
$meta
array
additional data array
$event
object
event object with all the event information

Runs after a log entry has been stored successfully, for the specific component and event. The callback receives the log ID, data, metadata, and registered event object.

Fires in log() in core/log/Core.php. This hook is called at line 211 in the current plugin source.

The name contains dynamic components. Replace each placeholder with the value used at runtime; register the callback for the resulting hook name.

The placeholders are the logged event component and event code.

The call in the plugin source shows the argument order and the value supplied at this point.

do_action( 'coreactivity_event_logged_' . $event->component . '_' . $event->event, $id, $data, $meta, $event );
Rate this reference
0
0
3

You are not allowed to rate this post.

Leave a Comment

0
0
0
0
0
0
0
0
0