wp Api - TenthPres/TouchPoint-WP GitHub Wiki
Fires after the plugin has been initialized.
Source: src/TouchPoint-WP/TouchPointWP.php, line 996
Controls whether to redirect to the TouchPoint login automatically.
Arguments
| Argument | Type | Description |
|---|---|---|
$redirect |
bool |
Value preset from setting TouchPoint login as default. |
Source: src/TouchPoint-WP/Auth.php, line 173
Controls whether to redirect to the TouchPoint login automatically.
Arguments
| Argument | Type | Description |
|---|---|---|
$redirect |
bool |
Value preset from setting TouchPoint login as default. |
Source: src/TouchPoint-WP/Auth.php, line 204
Allows for hiding the WordPress-provided Admin bar.
Arguments
| Argument | Type | Description |
|---|---|---|
$removeBar |
bool |
True if bar should be removed. |
Source: src/TouchPoint-WP/Auth.php, line 229
Allows for preventing access to the WordPress admin area.
Arguments
| Argument | Type | Description |
|---|---|---|
$destination |
?string |
The url to which the user should be redirected, or null to allow default behavior. |
Source: src/TouchPoint-WP/Auth.php, line 266
Allows for manipulation of the html returned to the calendar feature of 2.0 Mobile apps.
Arguments
| Argument | Type | Description |
|---|---|---|
$content |
string |
The html thus far. |
Changelog
| Version | Description |
|---|---|
0.0.90 |
Deprecated |
0.0.2 |
Added |
Source: src/TouchPoint-WP/EventsCalendar.php, line 147
Insert a CSS file into all event content for mobile 2.0 app.
Arguments
| Argument | Type | Description |
|---|---|---|
$cssUrl |
string |
The url for a CSS file. By default, one provided with the plugin is used. |
Changelog
| Version | Description |
|---|---|
0.0.90 |
Deprecated |
0.0.3 |
Added |
Source: src/TouchPoint-WP/EventsCalendar.php, line 188
Arguments
| Argument | Type | Description |
|---|---|---|
$useTemplates |
||
$className |
Source: src/TouchPoint-WP/Involvement.php, line 515
Arguments
| Argument | Type | Description |
|---|---|---|
true |
||
self::class |
Source: src/TouchPoint-WP/Involvement.php, line 1725
Allows a post to be prevented from inheriting its ancestor's featured image. By default, an Involvement or Meeting that has no image of its own uses the image of its nearest ancestor that has one. Return false to leave the post without an image. This runs whenever the image is requested, so it should be fast.
Arguments
| Argument | Type | Description |
|---|---|---|
true |
||
$post |
\WP_Post |
The post that doesn't have an image of its own. |
$ancestorId |
int |
The ID of the post the image would come from. |
$ancestorThumbnailId |
int |
The attachment ID of the image that would be used. |
Changelog
| Version | Description |
|---|---|
0.0.98 |
Added |
Source: src/TouchPoint-WP/Involvement.php, line 4204
Allows for manipulation of the notable attributes strings for an Involvement. An array of strings.
Typically, these are the standardized strings that appear on the Involvement to give information about it, such as the schedule, leaders, and location.
Arguments
| Argument | Type | Description |
|---|---|---|
$attrs |
\tp\TouchPointWP\Utilities\NotableAttributes |
The list of notable attributes. |
$inv |
\tp\TouchPointWP\Involvement |
The Involvement object. |
Changelog
| Version | Description |
|---|---|
0.0.11 |
Added |
Source: src/TouchPoint-WP/Involvement.php, line 4516
Allows for manipulation of the action buttons for an Involvement. This is the list of buttons that appear on the Involvement to allow the user to interact with it.
Arguments
| Argument | Type | Description |
|---|---|---|
$ret |
\tp\TouchPointWP\Utilities\StringableArray |
The list of action buttons. |
$this |
\tp\TouchPointWP\Involvement |
The Involvement object. |
$context |
?string |
A reference to where the action buttons are meant to be used. |
$btnClass |
string |
A string for classes to add to the buttons. Note that buttons can be 'a' or 'button' elements. |
Changelog
| Version | Description |
|---|---|
0.0.7 |
Added |
Source: src/TouchPoint-WP/Involvement.php, line 4598
Arguments
| Argument | Type | Description |
|---|---|---|
$allowed |
Source: src/TouchPoint-WP/Involvement.php, line 4861
Arguments
| Argument | Type | Description |
|---|---|---|
$allowed |
||
$invType |
Source: src/TouchPoint-WP/Involvement.php, line 4874
Adjust Involvement Post Type Settings. These settings define virtually all attributes of how a set of Involvements is synced to WordPress.
If you're using this filter, you will need to add your function VERY early (init with a low sequence number or earlier) because post types are registered early.
Arguments
| Argument | Type | Description |
|---|---|---|
$settingsArr |
\tp\TouchPointWP\Involvement_PostTypeSettings[] |
An array of the Post Type Settings objects. |
Changelog
| Version | Description |
|---|---|
0.0.90 |
Added |
Source: src/TouchPoint-WP/Involvement_PostTypeSettings.php, line 84
Allows for manipulation of the notable attributes strings for a Meeting. An array of strings.
Typically, these are the standardized strings that appear on the Involvement to give information about it, such as the schedule, leaders, and location.
Arguments
| Argument | Type | Description |
|---|---|---|
$attrs |
\tp\TouchPointWP\Utilities\NotableAttributes |
The list of notable attributes. |
$mtg |
\tp\TouchPointWP\Meeting |
The Meeting object. |
Changelog
| Version | Description |
|---|---|
0.0.96 |
Changed to use NotableAttributes instead of array. |
0.0.90 |
Added |
Source: src/TouchPoint-WP/Meeting.php, line 566
Allows for manipulation of the action buttons for a Meeting. This is the list of buttons that appear on the Meeting to allow the user to interact with it.
Arguments
| Argument | Type | Description |
|---|---|---|
$ret |
\tp\TouchPointWP\Utilities\StringableArray |
The list of action buttons. |
$this |
\tp\TouchPointWP\Meeting |
The Meeting object. |
$context |
?string |
A reference to where the action buttons are meant to be used. |
$btnClass |
string |
A string for classes to add to the buttons. Note that buttons can be 'a' or 'button' elements. |
Changelog
| Version | Description |
|---|---|
0.0.90 |
Added |
Source: src/TouchPoint-WP/Meeting.php, line 636
Adjust the gap after which a new Edition starts. When Editions are used, meetings are split into a new Edition wherever the time from the end of one meeting to the start of the next is more than this.
Arguments
| Argument | Type | Description |
|---|---|---|
self::DEFAULT_EDITION_GAP |
Changelog
| Version | Description |
|---|---|
0.0.98 |
Added |
Source: src/TouchPoint-WP/Meeting_GroupingSettings.php, line 349
Adjust the maximum gap between back-to-back meetings in a Cluster. Meetings of the same involvement are grouped into a Cluster when the time from the end of one to the start of the next is no more than this, and no other meeting is between them.
Arguments
| Argument | Type | Description |
|---|---|---|
self::DEFAULT_CLUSTER_GAP |
Changelog
| Version | Description |
|---|---|
0.0.98 |
Added |
Source: src/TouchPoint-WP/Meeting_GroupingSettings.php, line 370
Arguments
| Argument | Type | Description |
|---|---|---|
$useTemplates |
||
$className |
Source: src/TouchPoint-WP/Partner.php, line 598
Arguments
| Argument | Type | Description |
|---|---|---|
$useCss |
||
$className |
Source: src/TouchPoint-WP/Partner.php, line 729
Allows for manipulation of the notable attributes strings for an Partner. An array of strings.
Typically, these are the standardized strings that appear on the Partner to give information about it, such as the type and location.
Arguments
| Argument | Type | Description |
|---|---|---|
$attrs |
\tp\TouchPointWP\Utilities\NotableAttributes |
The list of notable attributes. |
$partner |
\tp\TouchPointWP\Partner |
The Partner object. |
Changelog
| Version | Description |
|---|---|
0.0.96 |
Changed to use NotableAttributes instead of array. |
0.0.6 |
Added |
Source: src/TouchPoint-WP/Partner.php, line 1307
Allows for manipulation of the action buttons for a Partner. This is the list of buttons that appear on the Partner to allow the user to interact with it.
Arguments
| Argument | Type | Description |
|---|---|---|
$ret |
\tp\TouchPointWP\Utilities\StringableArray |
The list of action buttons. |
$this |
\tp\TouchPointWP\Partner |
The Partner object. |
$context |
?string |
A reference to where the action buttons are meant to be used. |
$btnClass |
string |
A string for classes to add to the buttons. Note that buttons can be 'a' or 'button' elements. |
$absoluteLinks |
bool |
Set true to make the links absolute, so they work from apps or emails. |
Changelog
| Version | Description |
|---|---|
0.0.7 |
Added |
Source: src/TouchPoint-WP/Partner.php, line 1367
Allows for manipulation of the action buttons for a Person. This is the list of buttons that appear on the Person to allow the user to interact with them.
Arguments
| Argument | Type | Description |
|---|---|---|
$ret |
\tp\TouchPointWP\Utilities\StringableArray |
The list of action buttons. |
$this |
\tp\TouchPointWP\Person |
The Person object. |
$context |
?string |
A reference to where the action buttons are meant to be used. |
$btnClass |
string |
A string for classes to add to the buttons. Note that buttons can be 'a' or 'button' elements. |
Changelog
| Version | Description |
|---|---|
0.0.96 |
Adjusted parameters and return value to have type StringableArray rather than string. If the |
| return value is not a StringableArray, it will be forced into one. | |
0.0.90 |
Added |
Source: src/TouchPoint-WP/Person.php, line 1287
Arguments
| Argument | Type | Description |
|---|---|---|
true |
Source: src/TouchPoint-WP/Person.php, line 1927
Arguments
| Argument | Type | Description |
|---|---|---|
$allowed |
Source: src/TouchPoint-WP/Person.php, line 1939
Allows the title that's displayed for a post within its parent to be adjusted. By default, the parent's title is removed from the start of the post's title when the two are separated by a colon, dash, or similar. This can be used to handle other patterns, such as abbreviations, or to turn the behavior off by returning the full title.
This isn't used where a post is displayed on its own page, or outside of its parent, such as in the calendar.
Arguments
| Argument | Type | Description |
|---|---|---|
$title |
string |
The title to display, filtered like any other title. |
$post |
\WP_Post |
The post whose title is displayed. |
$parent |
?\WP_Post |
The parent it's displayed within, if any. |
$fullTitle |
string |
The post's full title, filtered like any other title. |
Changelog
| Version | Description |
|---|---|
0.0.98 |
Added |
Source: src/TouchPoint-WP/PostTypeCapable.php, line 109
Filter the class name to be used for the displaying the report.
Arguments
| Argument | Type | Description |
|---|---|---|
$class |
string |
The class name to be used. |
$report |
\tp\TouchPointWP\Report |
The report being displayed. |
Source: src/TouchPoint-WP/Report.php, line 432
Adjust the settings array before it's returned.
Arguments
| Argument | Type | Description |
|---|---|---|
$settings |
Changelog
| Version | Description |
|---|---|
0.0.90 |
Added |
Source: src/TouchPoint-WP/Settings.php, line 1325
Allows for manipulation of menu settings for the plugin.
Arguments
| Argument | Type | Description |
|---|---|---|
$settings |
array |
The settings array. Default values below. 'location' => 'options', // Possible settings: options, menu, submenu. 'parent_slug' => 'options-general.php', 'page_title' => __('TouchPoint-WP', 'TouchPoint-WP'), 'menu_title' => __('TouchPoint-WP', 'TouchPoint-WP'), 'capability' => 'manage_options', 'menu_slug' => $this->parent::TOKEN . '_Settings', 'function' => [$this, 'settingsPage'], 'icon_url' => '', 'position' => null, |
Source: src/TouchPoint-WP/Settings.php, line 1413
This plugin is designed to be used by other churches, but to help troubleshoot and understand usage, some basic statistics are sent back to Tenth. This filter allows you to change the endpoint to which the data is sent, which may be necessary if you have a proxy system setup. It also allows you to disable the sending of all information back to Tenth by setting the value to an empty string.
The URL must use https.
Arguments
| Argument | Type | Description |
|---|---|---|
$endpoint |
string |
The endpoint value to use. |
Changelog
| Version | Description |
|---|---|
0.0.96 |
Added |
Source: src/TouchPoint-WP/Stats.php, line 308
Arguments
| Argument | Type | Description |
|---|---|---|
true |
Source: src/TouchPoint-WP/TouchPointWP.php, line 1115
Arguments
| Argument | Type | Description |
|---|---|---|
$includeStyle |
Source: src/TouchPoint-WP/TouchPointWP.php, line 1152
Arguments
| Argument | Type | Description |
|---|---|---|
$includePartialsStyle |
||
$context |
Source: src/TouchPoint-WP/TouchPointWP.php, line 2676
Arguments
| Argument | Type | Description |
|---|---|---|
$includeActionsStyle |
||
$action |
Source: src/TouchPoint-WP/TouchPointWP.php, line 2720
Allows for manipulation of the string returned as a formatted time.
Arguments
| Argument | Type | Description |
|---|---|---|
$ts |
string |
The string, as formatted so far. |
$dt |
\DateTimeInterface |
The DateTimeInterface object for the time being formatted. |
Changelog
| Version | Description |
|---|---|
0.0.34 |
Added |
Source: src/TouchPoint-WP/Utilities/DateFormats.php, line 44
Allows for manipulation of a time range string. For example, combined with tp_adjust_time_string, you
can change a range of 1:00pm - 2:00pm to 1-2pm.
Arguments
| Argument | Type | Description |
|---|---|---|
$ts |
string |
The string, as formatted so far. |
$startStr |
string |
The start string, with default formatting. |
$endStr |
string |
The end string, with default formatting |
$startDt |
\DateTimeInterface |
The DateTimeInterface object for the start. |
$endDt |
\DateTimeInterface |
The DateTimeInterface object for the end. |
Changelog
| Version | Description |
|---|---|
0.0.90 |
Added |
Source: src/TouchPoint-WP/Utilities/DateFormats.php, line 108
Allows for manipulation of the string returned as a formatted date.
Arguments
| Argument | Type | Description |
|---|---|---|
$r |
string |
The string, as formatted so far. |
$dt |
\DateTimeInterface |
The DateTimeInterface object for the date being formatted. |
Changelog
| Version | Description |
|---|---|
0.0.90 |
Added |
Source: src/TouchPoint-WP/Utilities/DateFormats.php, line 186
Allows for manipulation of the string returned as a (short) formatted date.
Arguments
| Argument | Type | Description |
|---|---|---|
$r |
string |
The string, as formatted so far. |
$dt |
\DateTimeInterface |
The DateTimeInterface object for the date being formatted. |
Changelog
| Version | Description |
|---|---|
0.0.90 |
Added |
Source: src/TouchPoint-WP/Utilities/DateFormats.php, line 260
Allows for a custom color function to assign a color for a given value.
Arguments
| Argument | Type | Description |
|---|---|---|
$current |
?string |
The current value. Null is provided to the function because the color hasn't otherwise been determined yet. |
$itemName |
string |
The name of the current item. |
$setName |
string |
The name of the set to which the item belongs. |
Changelog
| Version | Description |
|---|---|
0.0.90 |
Added |
Source: src/TouchPoint-WP/Utilities.php, line 375
Allows for a custom color set to be used for color assignment to match branding. This filter should return an
array of colors in hex format, starting with '#'. The colors will be assigned in order, but it is not
deterministic which color will be assigned to which item. If it needs to be, use the tp_custom_color_function
filter instead.
Arguments
| Argument | Type | Description |
|---|---|---|
$array |
string[] |
The array of colors in hex format strings, starting with '#'. |
$setName |
string |
The name of the set for which the colors are needed. |
Changelog
| Version | Description |
|---|---|
0.0.90 |
Added |
Source: src/TouchPoint-WP/Utilities.php, line 405
Allows for the standardization of HTML content, typically during the import from TouchPoint. If this filter is used, the default filtering will be bypassed. Use other filters for more precise control.
Arguments
| Argument | Type | Description |
|---|---|---|
$html |
string |
The HTML to be standardized. |
$context |
string |
A context string to pass to hooks. |
Changelog
| Version | Description |
|---|---|
0.0.34 |
Added |
Source: src/TouchPoint-WP/Utilities.php, line 736
Make any adjustments to HTML content before the rest of the standardization process happens.
Arguments
| Argument | Type | Description |
|---|---|---|
$html |
string |
The HTML to be standardized. |
$context |
string |
A context string to pass to hooks. |
Changelog
| Version | Description |
|---|---|
0.0.25 |
Added |
Source: src/TouchPoint-WP/Utilities.php, line 752
Arguments
| Argument | Type | Description |
|---|---|---|
$maxHeader |
||
$context |
Source: src/TouchPoint-WP/Utilities.php, line 775
The allowed tags in the HTML standardization process. Default is a set of common tags, but tags such as script, style, img, and others are stripped.
Arguments
| Argument | Type | Description |
|---|---|---|
$allowedTags |
string[] |
The allowed tags in the HTML. |
$context |
string |
A context string to pass to hooks. |
Changelog
| Version | Description |
|---|---|
0.0.25 |
Added |
Source: src/TouchPoint-WP/Utilities.php, line 783
Make any adjustments to HTML content after the rest of the standardization process happens.
Arguments
| Argument | Type | Description |
|---|---|---|
$html |
string |
The HTML to be standardized. |
$context |
string |
A context string to pass to hooks. |
Changelog
| Version | Description |
|---|---|
0.0.25 |
Added |
Source: src/TouchPoint-WP/Utilities.php, line 799
Generated by Pronamic WordPress Documentor 1.2.0