• cantonbecker

    (@cantonbecker)


    For several hours I was debugging a problem in which the custom activity I was tracking (page views) would work for guests, but not subscribers. I could see the activity appearing in the raw database, but these visits were not showing up in the activity log.

    I fixed the problem by addressing what appears to be a bug in class-awl-activity-log-list-table.php

    Change:

    $this->_caps = apply_filters( 'aal_init_caps', array(
    'administrator' => array( 'administrator', 'editor', 'author', 'guest' ),
    'editor'        => array( 'editor', 'author', 'guest' ),
    'author'        => array( 'author', 'guest' ),
    ) );

    To:

    $this->_caps = apply_filters( 'aal_init_caps', array(
    'administrator' => array( 'administrator', 'editor', 'author', 'guest', 'subscriber' ),
    'editor'        => array( 'editor', 'author', 'guest', 'subscriber' ),
    'author'        => array( 'author', 'guest' , 'subscriber'),
    ) );

    https://ww.wp.xz.cn/plugins/aryo-activity-log/

Viewing 1 replies (of 1 total)
  • Plugin Author Yakir Sitbon

    (@kingyes)

    I know why, but I can see activity as subscriber. Thank you for your code, I’ll check this later 🙂

Viewing 1 replies (of 1 total)

The topic ‘Bug: Activity log excludes 'subscribers'’ is closed to new replies.