Title: Support for custom event objects (custom sensor)?
Last modified: January 10, 2020

---

# Support for custom event objects (custom sensor)?

 *  Resolved [wa11e](https://wordpress.org/support/users/wa11e/)
 * (@wa11e)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/support-for-custom-event-objects-custom-sensor/)
 * I have added a custom sensor in order to track log events for a custom tool that
   I built in WP. With version 4, I have updated the triggers to also send event
   object and type.
 * However I need to add a new event object, sense non of the built in objects doesn’t
   fit. So what I did was to add that object to via the wsal_event_objects filter:
 *     ```
           add_filter('wsal_event_objects', 'myCustomEventObjects', 10, 1);
           public function myCustomEventObjects($objects)
           {
               $objects['my-custom-plugin'] = __('My custom plugin', 'your-textdomian');
               asort($objects);
               return $objects;
           }
       ```
   
 * This seams to work with the exception for log viewer grid. Each row that have
   been tagged with “my-custom-plugin” event object have a blank object cell.
 * Is there a way for me to fix this? Or do you need to add support for this?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [robertabela](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/support-for-custom-event-objects-custom-sensor/#post-12318871)
 * Thank you for using our plugin [@wa11e](https://wordpress.org/support/users/wa11e/)
 * We need to add support for something like this for sure. We will look into this
   into more detail and will address this in the upcoming version. Will let you 
   know if we need more details.
 *  Plugin Support [robertabela](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/support-for-custom-event-objects-custom-sensor/#post-12684243)
 * Sorry for taking so long to get back to you [@wa11e](https://wordpress.org/support/users/wa11e/)
 * We actually prepared the hooks back in 4.0.1 and forgot to update the ticket.
   Here is all the documentation you need for custom event and to add new objects
   and event types:
 * [https://www.wpsecurityauditlog.com/support-documentation/hooks-custom-activity-log-add-ons/](https://www.wpsecurityauditlog.com/support-documentation/hooks-custom-activity-log-add-ons/)
 * I hope that helps. Should you require any further information please do not hesitate
   to ask.
 * Thank you for using our plugin. Please do not forget to [rate it](https://wordpress.org/plugins/wp-security-audit-log/#reviews)!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Support for custom event objects (custom sensor)?’ is closed to new replies.

 * ![](https://ps.w.org/wp-security-audit-log/assets/icon-256x256.png?rev=2961534)
 * [WP Activity Log](https://wordpress.org/plugins/wp-security-audit-log/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-security-audit-log/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-security-audit-log/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-security-audit-log/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-security-audit-log/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-security-audit-log/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [robertabela](https://wordpress.org/support/users/robert681/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/support-for-custom-event-objects-custom-sensor/#post-12684243)
 * Status: resolved