Description
This plugin Extends the plugin WP Security Audit Log to log events from the Paid Memberships Pro plugin. This plugin also includes some audit logs alerts to track changes to User Meta values.
Actions / Hooks Supported in the plugin
This plugin currently supports the following actions.
User Meta Actions:
- added_user_meta – logs alert whenever a Meta Field is created for user account.
- update_user_meta – Saves current value of a Meta Field so we can see what changes.
- updated_user_meta – logs alert with Value of Meta Field that changed.
- deleted_user_meta – logs event when a User Meta Field is deleted for a user account.
Actions that are related to Paid Memberships Pro (PMPro) plugin:
PMPro creates what it calls an “order” everytime a payment is made on an account. This includes the initial payment and recurring or subscription payments.
PMPro provides several actions to allow us to log creation and changes of these orders/payments.
- pmpro_added_order – logs an event when a PMPro Order for a membership payment is created.
- pmpro_delete_order – logs an event when a PMPro Order for a membership payment is deleted.
- pmpro_update_order – saved information about a PMPro Order for a membership payment to see what changes.
- pmpro_updated_order – logs an event when a PMPro Order for a membership payment with information that was changed.
When a user either joins a PMPro defined membership level or the account is cancelled or changed to another level, we can use the following actions
to try to see what was changed and who changed the account.
- pmpro_before_change_membership_level – saves information about an user that is about to change or cancel current PMPro membership level
- pmpro_after_change_membership_level‘ – logs event that details changes in membership levels for a user. Could be upgrade or canceling PMPro membership.
- pmpro_after_checkout – logs information after PMPro checkout process complete. Displays related PMPro order number and any discount codes applied during checkout.
PMPro allows the system to define several different levels, with differt criteria. These actions allow use to monitor changes to these levels and
what users are making the changes.
- pmpro_delete_membership_level – logs an event when a PMPro membership level is deleted and no longer available for users to select.
- pmpro_save_membership_level – logs an event when a PMPro membership level is added or updated. logs details of level to see new values.
PMPro allows the use of discount codes during the checkout / payment process. These actions allow us the ability to monitor changes
to the discount codes.
- pmpro_delete_discount_code – logs event when a PMPro discount code is deleted from the system.
- pmpro_save_discount_code – logs event when a PMPro discount code is added or updated. Log details about discount code.
- pmpro_save_discount_code_level – Discount codes can change PMPro Membership Leves in different ways, this logs a event detailing the discount to be applied to s specific PMPro Membership Level
PMPro supports multiple payment gateways. Some of the gateways allow subscription payments. The following actions in PMPro are called when certain subscription
events occur. Some of these actions are payment gateway specific.
- pmpro_subscription_cancelled – logs and event when a payment subscription is cancelled. This could be from a user action or possible payment failure.
- pmpro_subscription_expired – logs an event when a payment subscription expires. Could be only valid for 5 payments.
- pmpro_subscription_ipn_event_processed – logs event when Paypal IPN event is processed. Usually only on a subscription payment initiated by PayPal.
- pmpro_subscription_payment_completed – logs event when a subscription payment is completed successfully.
- pmpro_subscription_payment_failed – logs an event when payment gateway is unable to process a subscription payment.
- pmpro_subscription_payment_went_past_due – logs an event when payment gateway is unable to process a subscription payment and the due date is past.
Installation
Download, Install and Activate!
In your WordPress admin, go to Plugins > Add New to install WP Security Audit Log for Paid Memberships Pro, or:
- Download the latest version of the plugin.
- Unzip the downloaded file to your computer.
- Upload the /wpsecurity-audit-log-for-pmpro/ directory to the /wp-content/plugins/ directory of your site.
- Activate the plugin through the ‘Plugins’ menu in WordPress.
Complete the Initial Plugin Setup
All Audits are enabled at installation.
To Enable/Disable alerts:
- Go to Audit Log in the WordPress admin
- Click on Enable/Disable Alerts under Audit Log
- In tab “Paid Memberships Pro” – you can enable or disable specific alerts
- In tab “User Meta Alerts” – you can enable or disable User Meta alerts
To Exclude alerts:
- Go to Settings un Audit Log
- Click Exclude Objects tab
-
In Custom Fields section add fields you don’t want logged.
Example: Enter “pmpro_views” and click add.
This will no longer log changes to the user meta field “pmpro_views” (recommended. This is updated every time a page is viewed).
FAQ
- Installation Instructions
-
Download, Install and Activate!
In your WordPress admin, go to Plugins > Add New to install WP Security Audit Log for Paid Memberships Pro, or:
- Download the latest version of the plugin.
- Unzip the downloaded file to your computer.
- Upload the /wpsecurity-audit-log-for-pmpro/ directory to the /wp-content/plugins/ directory of your site.
- Activate the plugin through the ‘Plugins’ menu in WordPress.
Complete the Initial Plugin Setup
All Audits are enabled at installation.
To Enable/Disable alerts:
- Go to Audit Log in the WordPress admin
- Click on Enable/Disable Alerts under Audit Log
- In tab “Paid Memberships Pro” – you can enable or disable specific alerts
- In tab “User Meta Alerts” – you can enable or disable User Meta alerts
To Exclude alerts:
- Go to Settings un Audit Log
- Click Exclude Objects tab
-
In Custom Fields section add fields you don’t want logged.
Example: Enter “pmpro_views” and click add.
This will no longer log changes to the user meta field “pmpro_views” (recommended. This is updated every time a page is viewed).
Reviews
There are no reviews for this plugin.
Contributors & Developers
“WP Security Audit Log addon for Paid Memberships Pro” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “WP Security Audit Log addon for Paid Memberships Pro” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.1.5
- fix case where pmpro_after_change_membership_level only sends 2 parameters
- tested with version 3.0 of WP Security Audit Log and new license model
1.1.4
- fixed errors in a couple alert codes
1.1.3
*
1.1.2
- Fixed typos
- verified with version 4.8
1.1.1
- Fixed discount code to show added or modified
- Fixed bug in call to sensor manager
1.1
- Fixed to work with version 2.6.2 of WP Security Audit Log
- Added activation checks to make sure plugin versions compatibility
1.0
- Initial version