What are the Audit Trail Contexts and how do they work?
The Audit Trail monitors key activities on your site and records events as they happen. Since many things can happen on a site we need a way to group these activities, and to achieve this we created “Contexts”. Contexts, in relation to the Audit Trail, are large areas of the WordPress system within which certain groups of actions may fall.
There're 7 main contexts as follows:
- Users and Logins
- Posts and Pages
- WordPress and Settings
Every context has 1 or more related events. For example, "Emails" has:
- emails enabled
- emails disabled
Shield context is a special context where the plugin logs and tracks itself. Included in this context are events such as:
- Firewall blocks
- Firewall skipping
- White list notifications
- Two Factor Login Authentication
Important: Audit Contexts settings are not available in Shield 10.1 and onward. Audit Trail logs everything instead.
What are the main Audit Contexts and how do they work?
There are 7 main Audit Trail contexts available and each one of them has its own purpose:
- Users And Logins - Tracks activities related to the users and logins
- Plugins - Tracks the activities related to the plugins
- Themes - Tracks the activities related to the WordPress themes
- Posts And Pages - Tracks the activities related to the editing and publishing of posts and pages
- WordPress And Settings - Tracks the activities related to the WordPress upgrades and changes to particular WordPress settings
- Emails - Tracks the activities related to the email sending
- Shield - Tracks the activities related to the Shield
To review your site activities, you can use Audit Trail Viewer.
For more information about the Audit Trail, read the blog article here.