Registered before? Log in to use your saved details.
If you registered an account, please enter your details below to login. If this is your first time, proceed to the donation form.
function t-shirt_size() { /** * Set up the options that people can choose from in the select field. */ $options = array( 'small' => __( 'Small', 'custom-namespace' ), 'medium' => __( 'Medium', 'custom-namespace' ), 'large' => __( 'Large', 'custom-namespace' ), 'xlarge' => __( 'XLarge', 'custom-namespace' ), 'xxlarge' => __( 'XXLarge', 'custom-namespace' ), ); /** * Define a new select field. */ $field = new Charitable_Donation_Field( 'new_select_field', array( 'label' => __( 'T-shirt_size', 'custom-namespace' ), 'data_type' => 'user', 'donation_form' => array( 'type' => 'select', 'show_before' => 'phone', 'required' => false, 'options' => $options, ), 'admin_form' => true, 'show_in_meta' => true, 'show_in_export' => true, 'email_tag' => array( 'description' => __( 'Select a T-Shirt Size' , 'charitable' ), ), ) ); /** * Register the select field. */ charitable()->donation_fields()->register_field( $field ); } add_action( 'init', 't-shirt_size' );
Registered before? Log in to use your saved details.
If you registered an account, please enter your details below to login. If this is your first time, proceed to the donation form.