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 |
|---|
array
array
Sets the admin area color scheme to lightness
| package |
Default |
|---|
string
| package |
Disciple_Tools\Workflows Disciple_Tools\Workflows |
|---|
string
This removes the annoying […] to a Read More link
| package |
Default |
|---|
string
Remove injected CSS from gallery
| package |
Default |
|---|
mixed
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 |
|---|
integer
boolean
string
Returns the corresponding id for either user or contact.
| package |
Disciple_Tools\Users Disciple_Tools\Users |
|---|
string
boolean|mixed
Get base user
| package |
Disciple_Tools\Users Disciple_Tools\Users |
|---|
boolean
array|false|\WP_Error|\WP_User
Helper function to get the partner profile id.
| package |
Disciple_Tools\Network Disciple_Tools\Network |
|---|---|
mixed
Helper function to get the partner profile id.
| package |
Disciple_Tools\Network Disciple_Tools\Network |
|---|---|
mixed
Returns the site default user fields
| package |
Disciple_Tools\Users Disciple_Tools\Users |
|---|---|
array
Gets the current site defaults defined in the notifications config section in wp-admin
| package |
Disciple_Tools\Users Disciple_Tools\Users |
|---|---|
array
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 |
|---|
array
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 |
|---|---|
array
Returns user display name
| package |
Disciple_Tools\Users Disciple_Tools\Users |
|---|
string|\WP_Error
| package |
Disciple_Tools\Users Disciple_Tools\Users |
|---|
integer|string
Expects the contact id, but can be given the user id and look up the contact id.
| package |
Disciple_Tools\Users Disciple_Tools\Users |
|---|
integer
boolean
array|boolean|null|object
This hook function listens for the prepared async process on every page load.
| package |
Disciple_Tools\Notifications Disciple_Tools\Notifications |
|---|---|
| package |
Disciple_Tools\Users Disciple_Tools\Users |
|---|
mixed
| package |
Disciple_Tools\Notifications Disciple_Tools\Notifications |
|---|
array
| package |
Disciple_Tools\Notifications Disciple_Tools\Notifications |
|---|
array
| package |
Disciple_Tools\Notifications Disciple_Tools\Notifications |
|---|---|
| since | 0.1.0 |
| see | \Disciple_Tools_Activity_Log_API::insert |
array
| package |
Default |
|---|
boolean
boolean
boolean
boolean
boolean
boolean
array
boolean
Remove injected CSS from recent comments widget
| package |
Default |
|---|---|
Stop WordPress from using the sticky class (which conflicts with Foundation), and style WordPress sticky posts using the .wp-sticky class instead
| package |
Default |
|---|
array
Remove injected CSS for recent comments widget
| package |
Default |
|---|---|
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 |
|---|
boolean|\WP_Error
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 |
|---|
string
integer
string
boolean|\WP_Error
Load scripts, in a way that implements cache-busting
| package |
Default |
|---|---|
| Throws |
|
string
string
array
boolean
Load styles, in a way that implements cache-busting
| package |
Default |
|---|---|
| Throws |
|
string
string
array
string
Register scripts, in a way that implements cache-busting
| package |
Default |
|---|---|
\string
\string
array
\bool
Register styles, in a way that implements cache-busting
| package |
Default |
|---|---|
\string
\string
array
\string
Echos user display name
| package |
Disciple_Tools\Users Disciple_Tools\Users |
|---|
integer
Tests if a user notification is enabled.
| package |
Disciple_Tools\Users Disciple_Tools\Users |
|---|
string
string
array|null
integer|null
boolean
Class Disciple_Tools_Config_Contacts This class serves as master configuration and modification class to the contacts post type within the admin screens.
Class Disciple_Tools_Contact_Post_Type Disciple_Tools Plugin Contacts Post Type Class All functionality pertaining to contacts post types in Disciple_Tools.
Class Disciple_Tools_Contacts Functions for creating, finding, updating or deleting contacts
Class Disciple_Tools_Groups_Config This class serves as master configuration and modification class to the groups post type within the admin screens.
Class Disciple_Tools_Groups_Endpoints Custom endpoints file
Groups Post Type Class All functionality pertaining to post types in Disciple_Tools.
This class was built following the example of one-page-chart-template.php
Contains create, update and delete functions for people groups, wrapping access to the database
Disciple Tools Post Type Class All functionality pertaining to post types in Disciple_Tools.
Class Disciple_Tools_Posts Functions for creating, finding, updating or deleting posts