WP Security Audit Log addon for Paid Memberships Pro

An Addon to WP Security Audit Log to log events in Paid Memberships Pro

Author:Bill Stoltz (profile at wordpress.org)
WordPress version required:4
WordPress version tested:4.9.25
Plugin version:1.1.5
Added to WordPress repository:16-07-2017
Last updated:22-01-2018
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:https://github.com/bwsolutions/wpsal4pmpro
Total downloads:1 262
Active installs:10+
plugin download
Click to start download

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.

FAQ
ChangeLog