Events Made Easy Forums Tips Display custom fields

  • This topic has 2 replies, 2 voices, and was last updated 2 years ago by Anonymous.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #64269

    Hi, I hope you are well
    On the WordPress profile page there is an EME settings section. I would like to be able to display the data of some custom member fields here. How can I do this?
    Have a nice day


    While this is not covered by EME, it is by WP itself: you can create a hook and add info to the profile page:

    add_action('edit_user_profile', 'my_eme_user_profile') ;
    add_action('show_user_profile', 'my_eme_user_profile') ;
    function my_eme_user_profile($user) {

    See the function eme_user_profile in eme_people.php as an example.


    Thanks a lot. After some works, it’s fine.
    I had some concerns with the eme_get_members_by_wpid_membershipid function which returns an array containing the member’s array, so I had to extract this second array first when I noticed. ($member=$member[0];) The snippet is following

    add_action('edit_user_profile', 'my_eme_user_profile') ;
    add_action('show_user_profile', 'my_eme_user_profile') ;
    function my_eme_user_profile($user){
    	$member = eme_get_members_by_wpid_membershipid($wp_id, $membership_id);
    	if (!empty($member)) {
    	<h3>Carte de réduction</h3>
    	<li>Nombre de coupons disponibles : <php echo $coupon['answer'] ?></li>
    	<li>Dates des navigations payées par carte : <php echo $conso['answer'] ?></li>

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Tips’ is closed to new topics and replies.
Scroll to Top