• Resolved Tunji

    (@tjfunke001)


    Hello,

    I want to know how I can fetch and display log to a non-admin user, the logs would only be the user’s specific entries.

Viewing 1 replies (of 1 total)
  • Plugin Author Pär Thernström

    (@eskapism)

    This should be possible to do, but you need to use some hooks and filters to modify the behavior of the plugin.

    There is a filter called simple_history/view_history_capability that can be used to modify who can see the log.

    Then there is a filter called simple_history/log_query_sql_where that you can use to modify the SQL query that fetches the log from the database. You should be able to use that to modify the query to only include entries from the current user.

    This should get you started anyway. Good luck!

Viewing 1 replies (of 1 total)

The topic ‘Fetch and Display Hostory’ is closed to new replies.