bonny / WordPress-Simple-History

๐Ÿ”๐Ÿ•ต๏ธโ€โ™€๏ธ WordPress audit log that track user changes in WordPress admin using a nice activity feed.
https://simple-history.com
310 stars 69 forks source link

[Feature Request]: Allow displaying the History page under Tools #444

Closed vinkla closed 3 months ago

vinkla commented 3 months ago

I typically hide the dashboard menu item to declutter the number of unused pages. A valuable feature would be the ability to move the history page to the tools menu. This would be particularly beneficial if you only want administrators accessing the history.

Also, thank you for making this plugin possible and maintaining it ๐Ÿ™Œ

bonny commented 3 months ago

@vinkla I never actually used this myself but way back someone else requested this and this was added then. Let me know if it works for you :)

Add filter simple_history/admin_location that makes is possible to move the main page from the dashboard menu to any other menu page, for example the Tools menu. Fixes https://github.com/bonny/WordPress-Simple-History/issues/140. Example usage of filter:

// Move Simple History log sub page from the "Dashboard" menu to the "Tools" menu.
add_filter('simple_history/admin_location', function ($location) {
    $location = 'tools';
    return $location;
});

Related links:

vinkla commented 3 months ago

What a nostalgic find! This was also an issue by one of my friends ๐Ÿ™ƒ I should have searched more thoroughly. Thank you, Pรคr, for sharing the solution. Keep up the excellent work!