---
title: Stop PublishPress Activity From Recording Log Types
description: It is possible to stop PublishPress Activity from recording specific types of logs. For example, you may not want to record a log every time a post is updated. In that situation, you can use this code snippet to stop…
url: "https://activity.publishpress.com/docs/stop-logtivity-from-recording-log-types/"
updated: "2026-12-03"
category: Developer
---

# Stop PublishPress Activity From Recording Log Types

It is possible to stop PublishPress Activity from recording specific types of logs. For example, you may not want to record a log every time a post is updated.

In that situation, you can use this code snippet to stop "Post Updated" logs from being recorded by the PublishPress Activity app:

```
add_action('wp_logtivity_instance', function($Logtivity_Logger) {

    $actionsToIgnore = [
        'Post Updated', // add as many actions as you would like to ignore to this array
    ];

    if (in_array($Logtivity_Logger->action, $actionsToIgnore)) {
        $Logtivity_Logger->stop();
    }

});
```
