mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
37 lines
638 B
PHP
37 lines
638 B
PHP
<?php
|
|
|
|
class UM_Profile {
|
|
|
|
function __construct() {
|
|
|
|
}
|
|
|
|
function show_meta( $array ) {
|
|
global $ultimatemember;
|
|
$output = '';
|
|
|
|
foreach( $array as $k ) {
|
|
$data = '';
|
|
if ( $k && um_user( $k ) ) {
|
|
|
|
$value = um_user( $k );
|
|
$data = $ultimatemember->builtin->get_specific_field( $k );
|
|
$value = apply_filters("um_profile_field_filter_hook__", $value, $data );
|
|
|
|
$items[] = '<span>' . $value . '</span>';
|
|
$items[] = '<span class="b">•</span>';
|
|
|
|
}
|
|
}
|
|
|
|
if ( isset( $items ) ) {
|
|
array_pop($items);
|
|
foreach( $items as $item ) {
|
|
$output .= $item;
|
|
}
|
|
}
|
|
|
|
return $output;
|
|
}
|
|
|
|
} |