MemberPress: Send “Profile Updated” Admin Notification

function user_profile_update( $user_id ) { $site_url = get_bloginfo( ‘wpurl’ ); $user_info = get_userdata( $user_id ); $user_name = $user_info->display_name; //Retrieves user’s full name $user_email = $user_info->user_email; //Retrieves user’s e-mail address $subject = “Profile Updated: “.$site_url.””; $message = “Profile of $user_name ,…Continue reading

Profile Builder U.S. State Selector

add_filter(‘wppb_select_options_array’, ‘wppbc_us_states_select_options’, 20, 5); function wppbc_us_states_select_options($options, $field, $form_location, $user_id, $request_data) { if ($field[‘meta-name’] != ‘us_state’) return $options; $states = array_keys(wppbc_get_us_states()); return $states; } add_filter(‘wppb_select_labels_array’, ‘wppbc_us_states_select_labels’, 20, 5); function wppbc_us_states_select_labels($labels, $field, $form_location, $user_id, $request_data) { if ($field[‘meta-name’] != ‘us_state’) return $labels;…Continue reading