-
Notifications
You must be signed in to change notification settings - Fork 4
wpt_user_meta_shortcode
github-actions[bot] edited this page Jun 14, 2026
·
1 revision
Filter custom user meta. User meta tags are marked with {{$field}}.
add_filter(
'wpt_user_meta_shortcode',
function(
string $value,
int $auth_id,
string $field
) {
// Your code here.
return $value;
},
10,
3
);-
string$valueReturned singular value of a post meta field, tags stripped. -
int$auth_idUser ID. -
string$fieldName of user meta field.
string
apply_filters( 'wpt_user_meta_shortcode', wp_strip_all_tags( get_user_meta( $auth_id, $field, true ) ), $auth_id, $field )