List of hooks in the WP Security Audit Log plugin

You are here:
Back

Hooks in the WP Security Audit Log plugin allow you to hook into the plugin’s functionality to modify it’s behaviour. This article contains a list of hooks and parameters found in the WP Security Audit Log plugin.

wsal_post_meta_updated

Function

This hook runs before the logging of post meta update events, such as event ID 2062 and 2054 (refer to the complete list of WordPress activity log event IDs for more details). This hook can be used to log events of updated post meta from the front-end, since the plugin only keeps a log of post meta updates done via the WordPress admin pages.

Parameters

  • $meta_id – Unique ID of the meta data.
  • $object_id – Post ID to which the meta data belongs to.
  • $old_meta – Array of the meta data containing key & values of old meta data before it is updated.
  • $meta_key – Key of the meta data being updated.
  • $meta_value – Value of the meta data being updated.

Example

A general example code which shows how to log a meta data updated event in the WP Security Audit Log plugin.