I’m working on a site that uses the Paid Membership Pro plugin for WordPress, and I wanted to make the “State” field on the sign-up form a dropdown/select menu. It makes it really hard to effectively parse information and calculate taxes if people are entering things like “Indiana” and “IN” and “Ind” etc. with no consistency.
I spent some time looking for some clear instructions for this online, but nothing was very clear.. So I finally got some help from their support forum. Here’s the simple solution.
How To: Make the State Field a Dropdown Menu on Paid Membership Pro Sign Up Form
Just add the following two lines to your functions.php file:
add_filter('pmpro_longform_address', '__return_false' ); add_filter('pmpro_state_dropdowns', '__return_true' );
That’s it! Add that to the bottom, and you’re good to go.