Force PMPro to login over http or https in case other plugins (like WordPress MU Domain Mapping) conflict with what should be chosen here
This hook controls whether or not to allow registrations with email addresses which have already been used. By default, PMPro does not allow multiple registrations with one email address and shows an error if the email address has already been used.
$oldemail = apply_filters( "pmpro_checkout_oldemail", ( false !== $oldem_user ? $oldem_user->user_email : null ) );
Controls whether to send the default WordPress new user notifications when a user is created at checkout. By default, this is set to false.
add_filter("pmpro_wp_new_user_notification", "__return_false", 0);
This hook pmpro_checkout_start_date allows you to change the start date of a membership before checkout.
apply_filters( "pmpro_checkout_start_date", $startdate, int $user_id, object $pmpro_level );
This filter modifies the level given by a discount code. It passes the level object and the discount code ID.
apply_filters( "pmpro_discount_code_level", object $pmpro_level, int $discount_code_id );
Filters the required fields for the Account Information section on the checkout page. Passes the array of field names.
apply_filters( "pmpro_required_user_fields", array $pmpro_required_user_fields );
This filter changes the URL to redirect to on confirmation. By default, this redirects to the PMPro Confirmation page with
pmpro_url("confirmation", "?level=" . $pmpro_level->id). It also passes the user ID of the current user and the level object.
apply_filters( "pmpro_confirmation_url", string $rurl, int $user_id, object $pmpro_level );
Controls whether to verify the Billing Address fields at checkout when using the Stripe payment gateway.
Modifies the list of valid gateways used by PMPro. By default, it returns the gateway set in Memberships > Payment Settings in the WordPress Dashboard.
apply_filters( "pmpro_valid_gateways", array( "paypal", "paypalexpress" ) );
This hook allows you to modify the membership level object before checkout.
apply_filters('pmpro_checkout_level', object $pmpro_level);