mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-14 12:16:39 +09:00
41 lines
875 B
PHP
41 lines
875 B
PHP
<?php
|
|
|
|
class UM_Profile {
|
|
|
|
function __construct() {
|
|
|
|
}
|
|
|
|
function show_meta( $array ) {
|
|
global $ultimatemember;
|
|
$output = '';
|
|
|
|
foreach( $array as $key ) {
|
|
$data = '';
|
|
if ( $key && um_user( $key ) ) {
|
|
|
|
$value = um_user( $key );
|
|
$data = $ultimatemember->builtin->get_specific_field( $key );
|
|
$type = (isset($data['type']))?$data['type']:'';
|
|
|
|
$value = apply_filters("um_profile_field_filter_hook__", $value, $data );
|
|
$value = apply_filters("um_profile_field_filter_hook__{$key}", $value, $data );
|
|
$value = apply_filters("um_profile_field_filter_hook__{$type}", $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;
|
|
}
|
|
|
|
} |