[ create a new paste ] login | about

Link: http://codepad.org/7gXaXAME    [ raw code | fork ]

PHP, pasted on Sep 16:
function my_custom_user_profile_fields($user) {
?>

<h2><?php _e( 'Membership Info' ); ?></h2>

<table class="form-table">
<tr>
	<th>
		<label for="My_Coach_Herbalife"><?php _e('Personal Coach del Benessere Herbalife', 'my'); ?></label>
	</th>
	<td>
		<input type="text" name="your_coach" id="your_coach" value="<?php echo esc_attr( get_the_author_meta( 'your_coach', $user->ID ) ); ?>" class="regular-text" />
		
		<br><span class="description"><?php _e('Come Cliente inserisci Nome e Cognome del tuo Coach del Benessere di riferimento su Nutrition for Life Wellness POINT.', 'my'); ?></span>
		<br><span class="description"><?php _e('Se non ne hai uno lascia in bianco.', 'my'); ?></span>
	</td>
</tr>
<tr>
	<th>
		<label for="My_ID_Herbalife"><?php _e('ID Membro Herbalife', 'my'); ?></label>
	</th>
	<td>
		<input type="text" name="your_member_id" id="your_member_id" value="<?php echo esc_attr( get_the_author_meta( 'your_member_id', $user->ID ) ); ?>" class="regular-text" />
		
		<br><span class="description"><?php _e('Come Membro Herbalife facente parte del nostro Team inserisci la tua ID Herbalife.', 'my'); ?></span>
		<br><span class="description"><?php _e('Se fai parte di un\'altra organizzazione non registrarti a questo sito.', 'my'); ?></span>
	</td>
</tr>
<tr>
	<th>
		<label for="My_Sponsor_Herbalife"><?php _e('Sponsor Herbalife', 'my'); ?></label>
	</th>
	<td>
		<input type="text" name="your_sponsor" id="your_sponsor" value="<?php echo esc_attr( get_the_author_meta( 'your_sponsor', $user->ID ) ); ?>" class="regular-text" />
		
		<br><span class="description"><?php _e('Come Membro Herbalife Inserisci Nome e Cognome del tuo Sponsor.', 'my'); ?></span>
	</td>
</tr>
</table>
<?php
}
add_action('show_user_profile', 'my_custom_user_profile_fields');
add_action('edit_user_profile', 'my_custom_user_profile_fields');


Create a new paste based on this one


Comments: