MemberPress: Remove State Field for ReadyLaunch™

function trim_down_address_fields( $options ) { foreach( $options->address_fields as $i => $o ) { if( $o->field_key == ‘mepr-address-state’ ) { unset( $options->address_fields[$i] ); } } return $options; } add_filter( ‘mepr_fetch_options’, ‘trim_down_address_fields’ ); //Add a fake state value to each user function…Continue reading

MemberPress: Set the order of payment methods

function mepr_rearrange_payment_methods( $payment_methods, $key ) { //Modify the order of the payment methods below according to your needs. You can also remove non needed payment methods $order = array( “PayPal Standard”, “Stripe”, “Authorize.net Profile”, “Offline Payment”, ); $pm_map = array();…Continue reading