WP Log

Wp log is simple plugin to save actions in database. Also actions can be sent to mail.
Wp log can record:
User Login
User Logout
User Register
User Delete
Post Edit
Post Delete
Theme Switch
New Comment
Comment Approved
Comment Unapproved
Plugin Activated
Plugin Deactivated
There is a useful option panel for plugin that let you to define which actions can be saved in database or send it in email.
Function:
wl_logs_action_row()
Return saved data in database. Return data is an array.
<?php echo wl_logs_action_row(‘action_name’,’ip_address’,’127.0.0.1′,’10’,’date’,’ASC’); ?>
Parameter 1 is output data that can be:
* – everything
action_name – action name
ip_address – return ip address
date – date of the action
data – extra data (need to be unserialized)
Parameter 2 is filter key.
Prameter 2 is filter value
parameter 3 is displayed items count
Parameter 4 is items order by that can be date, ip_address, id
Parameter 5 is order that can be ASC or DESC
Samples:
Display latest actions from specific ip:
<?php echo wl_logs_action_row(‘action_name’,’ip_address’,’YOUR IP ADDRESS’,’10’,’date’,’ASC’); ?>
Display every thing of latest actions:
<?php echo wl_logs_action_row(‘*’); ?>
Display only name of latest actions:
<?php echo wl_logs_action_row(‘action_name’); ?>
Display latest actions ip address:
<?php echo wl_logs_action_row(‘ip_address’); ?>
Arbitrary section 1
Download & install the zip archive
The plugin package installer can be downloaded from the WP2E project tab called “code”.
1 – Select the version to download if this option is available otherwise the “latest” version of the main plugin will be used.
2 – After downloading the zip archive install the plugin package installer in you local environment and activate the script from the plugin list.
3 – Under the section “Plugins” of the admin dashboard you should see a new “Dependencies & Licenses” link. Follow the instructions from this panel to finalize the installation of the missing dependencies.
- Give a name to your project
- Download the Installer Package
- Install & activate the plugin locally
- Install the suggested dependencies
Tips: Use the WP2E panel to add/suggest new dependencies to the local installation. Press F5 in the list of dependencies if the changes are not displayed right away.



