Skip to content

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}}.

Auto-generated Example

add_filter(
   'wpt_user_meta_shortcode',
    function(
        string $value,
        int $auth_id,
        string $field
    ) {
        // Your code here.
        return $value;
    },
    10,
    3
);

Parameters

  • string $value Returned singular value of a post meta field, tags stripped.
  • int $auth_id User ID.
  • string $field Name of user meta field.

Returns

string

Files

apply_filters( 'wpt_user_meta_shortcode', wp_strip_all_tags( get_user_meta( $auth_id, $field, true ) ), $auth_id, $field )

← All Hooks

Clone this wiki locally