Modifying profile meta HTML
-
Folks-
Admittedly, I am trying to swim in a deeper part of the pool than I have ever played in… I’m hoping you can help.
I have been customizing the profile page for a site I’m building. So far, I have been able to achieve everything I need with CSS I’m pretty comfortable with that). There is one part, however, I need to change the structure of the content–the HTML.
This is the part I need to change:
<div class="um-meta"> <span>XXXXXXXXX</span> <span class="b">•</span> <span>XXXXXXXXX</span> <span class="b">•</span> <span><a href="mailto:XXXXXXXXX" title="XXXXXXXXX">XXXXXXXXX</a></span> <span class="b">•</span> <span>XXXXXXXXX</span> </div>So, looking at the profile.php template, I see that I need to use the do_action( ‘um_profile_header’, $args ); hook to substitute my modified code. I think I understand how to do that.
I also found the default callback function, um_profile_header. Looking at that, I found the part that I need to change:
<?php if ( ! empty( $args['metafields'] ) ) { ?> <div class="um-meta"> <?php echo UM()->profile()->show_meta( $args['metafields'] ); ?> </div> <?php }I have never seen that particular syntax before, so I’m not sure, but I think its calling a function. I cannot seem to find where a show_meta() function is defined to see what it is doing by default.
Then, can I replace that function by using the same delete_action, add_action process that is used with hooks?
Any guidance you can provide is greatly appreciated.
–don
The topic ‘Modifying profile meta HTML’ is closed to new replies.