Functions

asc_meth

package

Default

Arguments

$a

$b

« More »

disciple_tools_off_canvas_nav

package

Default

« More »

disciple_tools_top_nav_desktop

package

Default

« More »

dt_address_metabox

package

Disciple_Tools\Posts

Response

\Disciple_Tools_Metabox_Address

« 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.

package

Disciple_Tools\Users

Disciple_Tools\Users

Arguments

$usermeta

array

Response

array

« More »

dt_change_admin_color

Sets the admin area color scheme to lightness

package

Default

Arguments

$result

Response

string

« More »

dt_counter

package

Disciple_Tools

« More »

dt_custom_notification_note

package

Disciple_Tools\Workflows

Disciple_Tools\Workflows

Arguments

$note

$notification

Response

string

« More »

dt_disable_emojis_remove_dns_prefetch

package

Default

Arguments

$urls

$relation_type

« More »

dt_disable_emojis_tinymce

package

Default

Arguments

$plugins

« More »

dt_disable_wp_emoji

Disable default emoji features of Wordpress

package

Default

« More »

dt_excerpt_more

This removes the annoying […] to a Read More link

package

Default

Arguments

$more

Response

string

« More »

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.)

package

Disciple_Tools\Posts\Contacts

Disciple_Tools\Posts\Contacts

Arguments

$contact_id

integer

$return

boolean

Response

string

« More »

dt_get_associated_user_id

Returns the corresponding id for either user or contact.

package

Disciple_Tools\Users

Disciple_Tools\Users

Arguments

$id

$id_type

string

Response

boolean|mixed

« More »

dt_get_base_user

Get base user

package

Disciple_Tools\Users

Disciple_Tools\Users

Arguments

$id_only

boolean

Response

array|false|\WP_Error|\WP_User

« More »

dt_get_partner_profile

Helper function to get the partner profile id.

package

Disciple_Tools\Network

Disciple_Tools\Network

Response

mixed

« More »

dt_get_partner_profile_id

Helper function to get the partner profile id.

package

Disciple_Tools\Network

Disciple_Tools\Network

Response

mixed

« More »

dt_get_site_default_user_fields

Returns the site default user fields

package

Disciple_Tools\Users

Disciple_Tools\Users

Response

array

« More »

dt_get_site_notification_defaults

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

package

Disciple_Tools\Users

Disciple_Tools\Users

Response

array

« 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 ) )

package

Disciple_Tools\Users

Disciple_Tools\Users

Arguments

$user_id

Response

array

« More »

dt_get_time_until_midnight

package

Disciple_Tools

« More »

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 ) )

package

Disciple_Tools\Users

Disciple_Tools\Users

Response

array

« More »

dt_get_user_display_name

Returns user display name

package

Disciple_Tools\Users

Disciple_Tools\Users

Arguments

$user_id

Response

string|\WP_Error

« More »

dt_get_user_id_from_assigned_to

package

Disciple_Tools\Users

Disciple_Tools\Users

Arguments

$user_meta

Response

integer|string

« More »

dt_get_user_locations_list

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

package

Disciple_Tools\Users

Disciple_Tools\Users

Arguments

$id

integer

$is_user_id

boolean

Response

array|boolean|null|object

« More »

dt_get_users_shared_with

package

Disciple_Tools\Posts\Contacts

Disciple_Tools\Posts\Contacts

Arguments

$contact_id

Response

array|mixed

« More »

dt_load_async_email

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

package

Disciple_Tools\Notifications

Disciple_Tools\Notifications

« More »

dt_modify_profile_fields

package

Disciple_Tools\Users

Disciple_Tools\Users

Arguments

$profile_fields

Response

mixed

« More »

dt_notification_delete

package

Disciple_Tools\Notifications

Disciple_Tools\Notifications

Arguments

$args

array

« More »

dt_notification_delete_by_post

package

Disciple_Tools\Notifications

Disciple_Tools\Notifications

Arguments

$args

array

« More »

dt_notification_insert

package

Disciple_Tools\Notifications

Disciple_Tools\Notifications

since 0.1.0
see \Disciple_Tools_Activity_Log_API::insert

Arguments

$args

array

« More »

dt_print_details_bar

package

Default

Arguments

$share_button

boolean

$comment_button

boolean

$show_update_needed

boolean

$update_needed

boolean

$following

boolean

$disable_following_toggle_function

boolean

$dispatcher_actions

array

$task

boolean

« More »

dt_product_tour

package

Default

« More »

dt_queries

package

Disciple_Tools

« More »

dt_remove_dashboard_meta

Cleans up the admin dashboard defaults

package

Default

« More »

dt_remove_post_admin_menus

Removes Post WP Admin menu item

package

Default

note

Removing the posts menu is to clean the admin menu and because it is unnecissary to the disciple tools system.

« More »

dt_remove_recent_comments_style

Remove injected CSS from recent comments widget

package

Default

« More »

dt_remove_sticky_class

Stop WordPress from using the sticky class (which conflicts with Foundation), and style WordPress sticky posts using the .wp-sticky class instead

package

Default

Arguments

$classes

Response

array

« More »

dt_remove_wp_widget_recent_comments_style

Remove injected CSS for recent comments widget

package

Default

« More »

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' );

package

Disciple_Tools\Notifications

Disciple_Tools\Notifications

Arguments

$email

$subject

$message_plain_text

Response

boolean|\WP_Error

« 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.

package

Disciple_Tools\Notifications

Disciple_Tools\Notifications

Arguments

$email

string

$post_id

integer

$message_plain_text

string

Response

boolean|\WP_Error

« More »

dt_site_scripts

Primary site script loader

package

Default

« More »

dt_start

Loads initial functions

package

Default

« More »

dt_theme_enqueue_script

Load scripts, in a way that implements cache-busting

package

Default

Throws
\Error

Dt_theme_enqueue_script took $rel_src argument which unexpectedly started with /.

Arguments

$handle

string

$rel_src

string

$deps

array

$in_footer

boolean

« More »

dt_theme_enqueue_style

Load styles, in a way that implements cache-busting

package

Default

Throws
\Error

Dt_theme_enqueue_style took $rel_src argument which unexpectedly started with /.

Arguments

$handle

string

$rel_src

string

$deps

array

$media

string

« More »

dt_theme_register_script

Register scripts, in a way that implements cache-busting

package

Default

Arguments

$handle

\string

$rel_src

\string

$deps

array

$in_footer

\bool

« More »

dt_theme_register_style

Register styles, in a way that implements cache-busting

package

Default

Arguments

$handle

\string

$rel_src

\string

$deps

array

$media

\string

« More »

dt_user_display_name

Echos user display name

package

Disciple_Tools\Users

Disciple_Tools\Users

Arguments

$user_id

integer

« More »

dt_user_notification_is_enabled

Tests if a user notification is enabled.

package

Disciple_Tools\Users

Disciple_Tools\Users

Arguments

$notification_name

string

$channel

string

$user_meta_data

array|null

$user_id

integer|null

Response

boolean

« More »

is_valid_timestamp

package

Disciple_Tools

Arguments

$timestamp

« More »

render_field_for_display

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

package

Disciple_Tools\Posts\Contacts

Disciple_Tools\Posts\Contacts

Arguments

$field_key

$fields

$post

« More »

set_task_notifications

Set task notifications

package

Disciple_Tools\Workflows

Disciple_Tools\Workflows

« 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 »

Disciple_Tools_Counter

Class Disciple_Tools_Counter_Factory

« More »

Disciple_Tools_Counter_Baptism

Class Disciple_Tools_Counter_Baptism

« More »

Disciple_Tools_Counter_Base

Class Disciple_Tools_Counter

« 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_Cron_Snapshot_Async

Class Disciple_Tools_Cron_Snapshot_Async

« More »

Disciple_Tools_Cron_Snapshot_Scheduler

Begin Schedule daily cron build

« More »

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 »

Disciple_Tools_Metabox_Address

Class Disciple_Tools_Metabox_Address

« More »

Disciple_Tools_Metrics

Class Disciple_Tools_Admin_Menus

« More »

Disciple_Tools_Metrics_Chart_Sources

This class was built following the example of one-page-chart-template.php

« More »

Disciple_Tools_Metrics_Critical_Path

« More »

Disciple_Tools_Metrics_Hooks_Base

« More »

Disciple_Tools_Metrics_Personal

« More »

Disciple_Tools_Metrics_Project

« More »

Disciple_Tools_Metrics_Users

« 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_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 »

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 »

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 »

Disciple_Tools_Posts_Endpoints

Class Disciple_Tools_Posts_Endpoints

« More »

Disciple_Tools_Queries

Class Disciple_Tools_Counter_Factory

« More »

Disciple_Tools_Snapshot_Report

Class Disciple_Tools_Snapshot_Report

« More »

Disciple_Tools_Update_Needed

Class Disciple_Tools_Update_Needed

« More »

Disciple_Tools_Update_Needed_Async

Class Disciple_Tools_Update_Needed_Async

« More »

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 »

Disciple_Tools_Workflows

Class Disciple_Tools_Workflows

« More »

DT_Metrics_Chart_Base

« More »

DT_Metrics_Groups_Tree

« More »

DT_Metrics_Mapbox_Area_Map

« More »

DT_Metrics_Mapbox_Cluster_Map

« More »

DT_Metrics_Mapbox_Contacts_Points_Map

« More »

DT_Metrics_Mapbox_Groups_Area_Map

« More »

DT_Metrics_Mapbox_Groups_Cluster_Map

« More »

DT_Metrics_Mapbox_Groups_Points_Map

« More »

DT_Metrics_Milestones_Chart

« More »

DT_Metrics_Milestones_Map_Chart

« More »

DT_Metrics_Seeker_Path_Chart

« More »

DT_Metrics_Sources_Chart

« More »

DT_Posts

Class DT_Posts

« More »

DT_Posts_Hooks

« More »

DT_User_Management

Class DT_User_Management

« More »