Title: Selective Logging
Last modified: October 8, 2020

---

# Selective Logging

 *  Resolved [dciphered](https://wordpress.org/support/users/dciphered/)
 * (@dciphered)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/selective-logging/)
 * Hi team,
 * I’d like to know if it’s possible to only log ‘delete’ actions on posts/custom
   posts with this plugin, instead of performing the broader scale of logging that
   it does by default?
 * Right now, I’m only interested in seeing who’s deleting custom posts and not 
   other logs. I’d like to avoid DB bloat by limiting logged events as oer the above.
 * Many thanks in advance.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Pär Thernström](https://wordpress.org/support/users/eskapism/)
 * (@eskapism)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/selective-logging/#post-13620393)
 * Yes sure, there is a filter `simple_history/log/do_log` you can use to limit 
   what is logged. See the examples file to get started:
 * [https://github.com/bonny/WordPress-Simple-History/blob/master/examples/examples.php#L50](https://github.com/bonny/WordPress-Simple-History/blob/master/examples/examples.php#L50)
    -  This reply was modified 5 years, 5 months ago by [Pär Thernström](https://wordpress.org/support/users/eskapism/).

Viewing 1 replies (of 1 total)

The topic ‘Selective Logging’ is closed to new replies.

 * ![](https://ps.w.org/simple-history/assets/icon.svg?rev=3225008)
 * [Simple History – Track, Log, and Audit WordPress Changes](https://wordpress.org/plugins/simple-history/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-history/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-history/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-history/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-history/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-history/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Pär Thernström](https://wordpress.org/support/users/eskapism/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/selective-logging/#post-13620393)
 * Status: resolved