• I have created a custom field in the profile form on UM with the Meta Key of “rewards-points” I would like to display this field in another section of the profile page (above the cover photo) displaying only the data from the field. I have seen reference to um_get_field__{$key} in which I suspect that I change “key” to rewards-points. I am not a php coder and I don’t know how to actually make this field show up when I insert it into the profile.php page. Can anyone help by supplying the actual full code that I would insert to achieve this? Many thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter scomaco

    (@scomaco)

    <?php
    add_filter( 'um_get_field__{$rewards-points}', 'my_get_field', 10, 1 );
    function my_get_field( $data ) {
        // your code here
    return $data;
    }
    ?>

    I tried using the abouve but I have no idea how to get this to work. Essentially I want to be able to wrap this in a div with a specific ID. Anyone?

Viewing 1 replies (of 1 total)
  • The topic ‘Meta Key’ is closed to new replies.