Functions

dt_get_user_associations

Prepares the keys of user connections for WP_Query This function builds the array for the meta_query used in WP_Query to retrieve only records associated with the user or the teams the user is connected to.

Example return: Array ( [relation] => OR [0] => Array ( [key] => assigned_to [value] => user-1 ) [1] => Array ( [key] => assigned_to [value] => group-1 ) )
« More »

dt_get_team_contacts

Gets team contacts for a specified user_id Example return: Array ( [relation] => OR [0] => Array ( [key] => assigned_to [value] => user-1 ) [1] => Array ( [key] => assigned_to [value] => group-1 ) )

« More »

dt_get_site_notification_defaults

Gets the current site defaults defined in the notifications config section in wp-admin

« More »

dt_get_site_default_user_fields

Returns the site default user fields

« More »

dt_get_associated_user_id

Returns the corresponding id for either user or contact.

« More »

dt_user_display_name

Echos user display name

« More »

dt_get_user_display_name

Returns user display name

« More »

dt_get_user_id_from_assigned_to

« More »

dt_modify_profile_fields

« More »

dt_build_user_fields_display

Compares the user_metadata array with the site user fields and returns a combined array limited to site_user_fields.

This is used in the theme template to display the user profile.
« More »

dt_get_user_locations_list

Expects the contact id, but can be given the user id and look up the contact id.

« More »

dt_user_notification_is_enabled

Tests if a user notification is enabled.

« More »

dt_get_base_user

Get base user

« More »

Classes, interfaces and traits

Disciple_Tools_Users

Class Disciple_Tools_Users Functions for creating, finding, updating or deleting users, wrapping access to the database

« More »

Disciple_Tools_Users_Endpoints

Custom endpoints

« More »

DT_User_Management

Class DT_User_Management

« More »