Filter: bricks/dynamic_data/user_value
Filters the value returned by {wp_user_...} dynamic data tags (e.g., {wp_user_email}, {wp_user_role}).
Parameters
Section titled “Parameters”$value(mixed): The value of the user field.$field_type(string): The specific user field being retrieved (e.g.,email,login,first_name,last_name,bio,picture,role,registered_date).$filters(array): Array of modifiers applied to the tag.
Example usage
Section titled “Example usage”add_filter( 'bricks/dynamic_data/user_value', function( $value, $field_type, $filters ) { // Example: Capitalize the user role if ( $field_type === 'role' && is_string( $value ) ) { return ucfirst( $value ); }
return $value;}, 10, 3 );Was this helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Please do not include passwords, license keys, or personal data. We store submitted notes to improve the docs.
Thanks for sharing feedback. We're using it to improve these docs.