Overview
The ctdqb_get_user_data filter hook allows you to modify or extend the user data array that is collected for each user within the Query Builder loop. This filter provides access to all the gathered user information and enables you to add custom data or modify existing values before the user is rendered.
Hook Parameters
- $props – Array of module properties.
- $user_data -Array containing all collected user data and metadata.
Understanding the User Data Array
The $user_data
array contains comprehensive information about each user:
Core User Data
id
– User IDtitle
– User display nameusername
– User nicename (URL-friendly username)email
– User email addresswebsite
– User website URL
Profile Information
author_link
– URL to user’s author archive pageavatar_html
– User avatar HTML (supports WP User Avatar plugin)description
– User biographical information
Custom Fields
custom_fields
– Array of custom field datacustom_fields_html
– Rendered custom fields HTMLcf_link
– Custom field link value
Divi Layout Data
dl_content
– Divi layout content (when enabled)
0 Comments