Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there way to check wordpress logs? Like what actions admin has performed etc?

Tags:

wordpress

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?

like image 505
Jaguar Avatar asked Sep 15 '10 05:09

Jaguar


People also ask

Is there an activity log on WordPress?

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.

How do I view WordPress logs?

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.

How do I view change logs in WordPress?

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.

Is admin logged in WordPress?

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).


1 Answers

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.

like image 162
Pekka Avatar answered Oct 04 '22 04:10

Pekka