How to Log Only Selected Events

Logtivity has an option to store only the logs that matter to you.

You can also disable the default logs on an individual basis via the filter example below. This example will prevent Logtivity from recording the “Post Updated” action logs:

add_action('wp_logtivity_instance', function($Logtivity_Logger) {

    if (strpos($Logtivity_Logger->action, 'Post Updated') !== false) {