• Resolved nehagrover027

    (@nehagrover027)


    Hi there,

    we’re trying to show last updated time for the site. I managed to show it using $logQuery = new SimpleHistoryLogQuery();
    but its showing results only to the logged-in users.
    How can I make it show to non-logged-in users as well.?

    Please advise.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author eskapism

    (@eskapism)

    The plugin has a built in feature that makes some loggers/entries only readable/viewable by admin. This is beacuse some logged items may have sensitive information in them. To make these readable by all users you can use the filter simple_history/loggers_user_can_read/can_read_single_logger to control what user can read what logger.

    The code in the plugin looks like this:

    
                $user_can_read_logger = apply_filters(
                    'simple_history/loggers_user_can_read/can_read_single_logger',
                    $user_can_read_logger,
                    $one_logger['instance'],
                    $user_id
                );
    

    Hope this information can help you modify this to suit your needs!

Viewing 1 replies (of 1 total)
  • The topic ‘SimpleHistoryLogQuery() not showing results for non-logged-in users’ is closed to new replies.