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

MemberPress: Mailchimp Feed Unblocker

function allow_mc_through( $block, $post, $uri ) { if( isset( $_GET[‘allow_mailchimp’] ) ) { $block = false; } return $block; } add_filter( ‘mepr-pre-run-rule-content’, ‘allow_mc_through’, 11, 3 );Continue reading

MemberPress: Manually Refresh Member Data

/** * Manually refresh all members’ data. * * Once this snippet is added, visit /wp-admin/?update-member-data=true on your site to update all member data. * After running the update, clear any site cache and check the Members page again. */…Continue reading

MemberPress: Export Account Type in CSV

add_action( ‘admin_init’, function() { if ( isset( $_GET[‘export_members_extended’] ) ) { $all = MeprUser::list_table( /* $order_by */ ‘user_login’, /* $order */ ‘ASC’, /* $paged */ ”, /* $search */ ”, /* $search_field */ ‘any’, /* $perpage */ ”, /* $params…Continue reading