hi friends Is there way to check wordpress logs? Like what actions admin has performed etc? Actually I am working on a project and someone has deleted my pages templates to trash and my site was down. I want to check who did this in my wordpress admin panel?
To track the logged in users on your site, you need to go to the WP Activity Log » Logged In Users page. From here you will see all the users who are logged into your site. You can view all the activity of a certain user, or force someone to log out by clicking on the 'Terminate Session' button.
To review your error logs, navigate to your /wp-content/ folder in your File Manager. Locate the debug. log file. This file will contain all WordPress errors, warnings, and notices that were logged.
In your WordPress.com Dashboard, go to Pages or Posts. Click on the title of the post or page to edit the one you want to view revisions for. On the right side, under Page/ Post Settings, look for Revisions.
To check if the currently logged in user is an administrator, use the current_user_can function. To check if a user is an administrator, you can specify the capability as an argument of current_user_can function (e.g. manage_options).
I don't think Wordpress has an event log, at least I've never heard of one or seen one. There is a login logger plugin, but it has to be installed and doesn't work retroactively.
In theory, it should be possible to get at least the IP address of the perpetrator from the normal Apache access logs, and searching it for all recent accesses to the /wp-admin
folder. That is pretty cumbersome work, though.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With