apply_filters( 'um_profile_nopriv_tag_hook__{$usermeta}', $value ) → {string}
Filters the user placeholders value of pattern for not logged-in user.
Parameters:
Name | Type | Description |
---|---|---|
$value |
string | User meta field value. |
- Since:
- 2.6.11
- Source:
Returns:
User meta field value.
- Type
- string
Example
function my_nopriv_user_description( $value ) {
$value = ! empty( $_GET['user_description'] ) ? sanitize_text_field( $_GET['user_description'] ) : '';
return $value;
}
add_filter( 'um_profile_nopriv_tag_hook__user_description', 'my_nopriv_user_description' );