Functions

dt_counter

« More »

dt_queries

« More »

dt_get_time_until_midnight

« More »

is_valid_timestamp

« More »

Classes, interfaces and traits

Disciple_Tools_Counter

Class Disciple_Tools_Counter_Factory

« More »

Disciple_Tools_Counter_Baptism

Class Disciple_Tools_Counter_Baptism

« More »

Disciple_Tools_Counter_Connected

Class Disciple_Tools_Counter_Connected

« More »

Disciple_Tools_Counter_Contacts

Class Disciple_Tools_Counter_Contacts

« More »

Disciple_Tools_Counter_Generations

Class Disciple_Tools_Counter_Generations

« More »

Disciple_Tools_Counter_Groups

Class Disciple_Tools_Counter_Groups

« More »

Disciple_Tools_Counter_Locations

Class Disciple_Tools_Counter_Outreach

« More »

Disciple_Tools_Counter_Outreach

Class Disciple_Tools_Counter_Outreach

« More »

Disciple_Tools_Metrics

Class Disciple_Tools_Admin_Menus

« More »

Disciple_Tools_Metrics_Hooks_Base

« More »

Disciple_Tools_Queries

Class Disciple_Tools_Counter_Factory

« More »

Functions

dt_send_email

Shared DT email function to be used throughout the DT system. It provides asynchonous mail delivery that does not halt page load.

Example: dt_send_email( 'recipients@email.com', 'subject line', 'content of the message' );
« More »

dt_send_email_about_post

Shared DT email function, similar to dt_send_email, but intended for use for emails that are related to a particular contact record.

We want to keep the subject line for all updates related to a particular contact the same. For contact 43, the subject line should always be the same: Subject: Update on contact43 That way, Gmail.com will group these emails in a single conversation view. Ideally, we would use the `Message-ID` and `References` email headers to make this more robust and more portable in other email clients, but that would make this code more complex, as we probably would have to store the Message-IDs for previous sent emails. This function also appends a link in the email body to the contact record.
« More »

dt_load_async_email

This hook function listens for the prepared async process on every page load.

« More »

dt_notification_insert

« More »

dt_notification_delete

« More »

dt_notification_delete_by_post

« More »

Classes, interfaces and traits

Disciple_Tools_Notifications

Class Disciple_Tools_Notifications

« More »

Disciple_Tools_Notifications_Comments

Class Disciple_Tools_Notifications_Comments

« More »

Disciple_Tools_Notifications_Email

Class Disciple_Tools_Notifications_Email

« More »

Disciple_Tools_Notifications_Endpoints

Disciple_Tools_Notifications_Endpoints

« More »

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 »

Functions

dt_address_metabox

« More »

Classes, interfaces and traits

Disciple_Tools_Metabox_Address

Class Disciple_Tools_Metabox_Address

« More »

Disciple_Tools_Post_Type_Template

Class Disciple_Tools_Post_Type_Template

« More »

Disciple_Tools_Posts

Class Disciple_Tools_Posts Functions for creating, finding, updating or deleting posts

« More »

DT_Posts

Class DT_Posts

« More »

Classes, interfaces and traits

Disciple_Tools_Groups

Class Disciple_Tools_Contacts Functions for creating, finding, updating or deleting contacts

« More »

Disciple_Tools_Groups_Config

Class Disciple_Tools_Groups_Config This class serves as master configuration and modification class to the groups post type within the admin screens.

« More »

Disciple_Tools_Groups_Endpoints

Class Disciple_Tools_Groups_Endpoints Custom endpoints file

« More »

Disciple_Tools_Groups_Post_Type

Groups Post Type Class All functionality pertaining to post types in Disciple_Tools.

« More »

Functions

dt_get_assigned_name

Prints the name of the Group or User Used in the loop to get a friendly name of the 'assigned_to' field of the contact

If $return is true, then return the name instead of printing it. (Similar to the $return argument in var_export.)
« More »

dt_get_users_shared_with

« More »

render_field_for_display

Accepts types: key_select, multi_select, text, date, connection, location

« More »

Classes, interfaces and traits

Disciple_Tools_Config_Contacts

Class Disciple_Tools_Config_Contacts This class serves as master configuration and modification class to the contacts post type within the admin screens.

« More »

Disciple_Tools_Contact_Post_Type

Class Disciple_Tools_Contact_Post_Type Disciple_Tools Plugin Contacts Post Type Class All functionality pertaining to contacts post types in Disciple_Tools.

« More »

Disciple_Tools_Contacts

Class Disciple_Tools_Contacts

« More »

Disciple_Tools_Contacts_Endpoints

Class Disciple_Tools_Contacts_Endpoints

« More »

Disciple_Tools_Contacts_Transfer

Class Module for transferring contacts between DT sites

« More »

Classes, interfaces and traits

Disciple_Tools_People_Groups

Contains create, update and delete functions for people groups, wrapping access to the database

« More »

Disciple_Tools_People_Groups_Endpoints

Custom endpoints

« More »

Disciple_Tools_People_Groups_Post_Type

Disciple Tools Post Type Class All functionality pertaining to post types in Disciple_Tools.

« More »

Functions

dt_get_partner_profile_id

Helper function to get the partner profile id.

« More »

dt_get_partner_profile

Helper function to get the partner profile id.

« More »

Classes, interfaces and traits

Disciple_Tools_Cron_Snapshot_Async

Class Disciple_Tools_Cron_Snapshot_Async

« More »

Disciple_Tools_Cron_Snapshot_Scheduler

Begin Schedule daily cron build

« More »

Disciple_Tools_Network

« More »

Disciple_Tools_Network_Endpoints

Rest Endpoints for the network feature of Disciple Tools

« More »

Disciple_Tools_Network_Queries

Class Disciple_Tools_Network_Queries

« More »

Disciple_Tools_Snapshot_Report

Class Disciple_Tools_Snapshot_Report

« More »

Functions

set_task_notifications

Set task notifications

« More »

dt_custom_notification_note

« More »

Classes, interfaces and traits

Disciple_Tools_Update_Needed

Class Disciple_Tools_Update_Needed

« More »

Disciple_Tools_Update_Needed_Async

Class Disciple_Tools_Update_Needed_Async

« More »

Disciple_Tools_Workflows

Class Disciple_Tools_Workflows

« More »