pmpro_valid_gateways

Modifies the list of valid gateways used by PMPro. By default, it returns the gateway set in Memberships > Payment Settings in the WordPress Dashboard.

pmpro_show_discount_code

Controls whether or not to show the “Apply Discount Code” field at checkout. By default, this field is only shown when there is a discount code which applies to this level.

pmpro_skip_account_fields

This filter is used to determine if the username/password account fields should show up at checkout. By default, it is shown when the user is logged out and not shown when logged in. The hook allows you to return true or false to override this behavior. If the fields are skipped while no user is logged in a username and password will be automatically generated for the new user after checkout.

pmpro_required_billing_fields

Filters the required fields for the Billing Address section on the checkout page. Passes the array of field names.

pmpro_before_send_to_twocheckout

Execute code before sending the order to 2Checkout. This hook passes the user ID of the order’s customer and the MemberOrder object.

pmpro_after_checkout

Use this action to execute custom code after a user checks out, before any emails are sent. This hook passes the WordPress user’s id number and the membership order number.

pmpro_before_send_to_paypal_standard

This is executed at checkout before calling the sendToPayPal method on the order. The register helper plugin has been updated to update user meta fields during this hook in addition to the pmpro_after_checkout hook. (Because for PayPal Standard, when pmpro_after_checkout is called, the $_SESSION vars are unavailable to it. So other plugins relying on the pmpro_after_checkout hook may have issues with PayPal Standard.)