Guest User

Untitled

a guest
Aug 22nd, 2017
89
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3. * Generate child theme functions and definitions
  4. *
  5. * @package Generate
  6. */
  7.  
  8. add_filter( 'upme_profile_display_user_pic', 'upme_profile_display_user_pic', 10, 2);
  9. function upme_profile_display_user_pic($display,$params){
  10. $display .= '<div class="upme-field upme-view upme-user_pic">
  11. <div class="upme-field-type">
  12. <i class="upme-icon-camera"></i>
  13. <span>' . __('Profile Picture','upmehooks') .'</span>
  14. </div>
  15. <div class="upme-field-value">
  16. <span><img src="' . get_user_meta($params['user_id'], $params['meta'] ,true) . '" /></span>
  17. </div>
  18. </div>';
  19. return $display;
  20. }
RAW Paste Data