Title: Exclude Specific Post Types from Logging
Last modified: February 28, 2024

---

# Exclude Specific Post Types from Logging

 *  Resolved [drahija](https://wordpress.org/support/users/drahija/)
 * (@drahija)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/exclude-specific-post-types-from-logging/)
 * We use the Activity Log plugin on a site that imports data from an external source.
   This data isn’t manually accessed or edited by specific users but runs as a background
   process. We’re importing roughly 70,000 records into a custom post type. I’ve
   been digging through the source code for the plugin to try and determine if there’s
   a filter I can use to tell the activity log plugin to ignore this specific post_type,
   but I’m not finding anything that indicates a way I can filter these from being
   logged so that I’m not running another 140,000 queries during this import process?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Yakir Sitbon](https://wordpress.org/support/users/kingyes/)
 * (@kingyes)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/exclude-specific-post-types-from-logging/#post-17469414)
 * Hello [@drahija](https://wordpress.org/support/users/drahija/),
 * We added this filter you can use to prevent from being inserted into the DB: 
   [https://github.com/pojome/activity-log/blob/550b5e93a126f45550a17b458712ab11e8abeec7/classes/class-aal-api.php#L129](https://github.com/pojome/activity-log/blob/550b5e93a126f45550a17b458712ab11e8abeec7/classes/class-aal-api.php#L129)
 * It will release with the next deploy.

Viewing 1 replies (of 1 total)

The topic ‘Exclude Specific Post Types from Logging’ is closed to new replies.

 * ![](https://ps.w.org/aryo-activity-log/assets/icon-256x256.png?rev=1944199)
 * [Activity Log - Monitor & Record User Changes](https://wordpress.org/plugins/aryo-activity-log/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/aryo-activity-log/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/aryo-activity-log/)
 * [Active Topics](https://wordpress.org/support/plugin/aryo-activity-log/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/aryo-activity-log/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/aryo-activity-log/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Yakir Sitbon](https://wordpress.org/support/users/kingyes/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/exclude-specific-post-types-from-logging/#post-17469414)
 * Status: resolved