Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ArielK

    (@arielk-1)

    Hi @elnoi,

    Unfortunately, we don’t have such an option on the settings page, but you can achieve this with a filter and some code in your functions.php file.

    Here’s an example of code that skips logging for any user with the administrator role:

    add_filter( 'aal_skip_insert_log', function( $should_skip_insert, $args ) {
    if ( isset( $args['user_caps'] ) && 'administrator' === $args['user_caps'] ) {
    $should_skip_insert = true;
    }
    return $should_skip_insert;
    }, 10, 2 );

    Thanks

    Thread Starter elnoi

    (@elnoi)

    Thanks Ariel,

    I encourage you to implement this option, since, when there is a lot of activity from the main administrator, some user’s records are lost in the middle of the administrator’s activity.

    Beyond perhaps detecting an intruder who has logged in as an administrator, one’s own records are more annoying than anything else.

    I’m sure you will find a viable solution for a next update.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘administrator user’ is closed to new replies.