Confetti Bits

Application

Table of Contents

Classes

CB_Core_Date_Query
CB_Core
CB Component
Confetti_Bits_Core_App_Menus
Confetti_Bits
Confetti Bits Class.

Constants

CONFETTI_BITS_AJAX_SLUG  = 'cb-ajax'
CONFETTI_BITS_EVENTS_SLUG  = 'events'
CONFETTI_BITS_PARTICIPATION_SLUG  = 'participation'
CONFETTI_BITS_REQUEST_ITEMS_SLUG  = 'request-items'
CONFETTI_BITS_REQUESTS_SLUG  = 'requests'
CONFETTI_BITS_TRANSACTIONS_SLUG  = 'transactions'

Functions

cb_setup_gh_commit_notifications()  : mixed
Adds a REST endpoint so we can send out updates to the team with each commit.
cb_handle_gh_commits()  : mixed
cb_get_request()  : mixed
Fires the cb_get_request action, where plugins can register their get requests.
cb_request()  : mixed
Fires the cb_request action, where plugins can modify their queries.
cb_login_redirect()  : mixed
Fires the cb_login_redirect action, where plugins can modify the login redirect.
cb_core_set_api_key()  : string
CB Core Set API Key
cb_events_format_notifications()  : mixed
cb_events_notifications()  : mixed
cb_events_add_query_vars()  : mixed
cb_events_template_include()  : mixed
cb_participation_new_notifications()  : mixed
cb_participation_format_notifications()  : mixed
cb_requests_format_notifications()  : mixed
cb_templates_get_form_output()  : mixed
Dynamically populates markup and input elements for a form.
cb_templates_get_date_input()  : mixed
Outputs markup for an actually nice date input. Uses Bootstrap styling and plugs in some custom data based on arguments passed.
cb_templates_get_time_selector_input()  : mixed
cb_time_selector_input()  : mixed
cb_templates_get_table()  : mixed
cb_transactions_format_notifications()  : mixed
cb_groups_format_notifications()  : mixed
cb_transactions_spot_bonus_notifications()  : mixed
cb_transactions_volunteer_bits_notifications()  : mixed
cb_transactions_get_spot_bonus_module()  : mixed
cb_transactions_get_volunteers_module()  : mixed
cb_transactions_volunteer_hours_module()  : mixed
cb_install_bb_platform_notice()  : mixed
Display notice if BuddyBoss Platform is not installed.
cb_update_bb_platform_notice()  : mixed
Display notice if BuddyBoss Platform is not updated.
cb_bp_is_active()  : mixed
Check if Confetti Bits is active.
cb_is_get_request()  : bool
CB Is Get Request
cb_is_post_request()  : bool
CB Is Post Request
confetti_bits_admin_enqueue_script()  : mixed
cb_save_user_birthday_anniversary_fields()  : mixed
cb_core_admin_settings_init()  : mixed
cb_core_convert_scripts_to_modules()  : mixed
Replaces our default script tags with modules.
cb_core_do_spot_bonuses()  : mixed
cb_core_listify()  : mixed
cb_core_schedule_events()  : mixed
cb_core_utc_to_local()  : mixed

Constants

Functions

cb_setup_gh_commit_notifications()

Adds a REST endpoint so we can send out updates to the team with each commit.

cb_setup_gh_commit_notifications() : mixed

cb_handle_gh_commits()

cb_handle_gh_commits(WP_REST_Request $request) : mixed
Parameters
$request : WP_REST_Request

cb_get_request()

Fires the cb_get_request action, where plugins can register their get requests.

cb_get_request() : mixed

cb_request()

Fires the cb_request action, where plugins can modify their queries.

cb_request([mixed $query_vars = array() ]) : mixed
Parameters
$query_vars : mixed = array()

cb_login_redirect()

Fires the cb_login_redirect action, where plugins can modify the login redirect.

cb_login_redirect([string $redirect_to = '' ][, string $redirect_to_raw = '' ][, WP_User|WP_Error $user = false ]) : mixed
Parameters
$redirect_to : string = ''

The redirect destination URL.

$redirect_to_raw : string = ''

The requested redirect destination URL passed as a parameter.

$user : WP_User|WP_Error = false

WP_User object if login was successful, WP_Error object otherwise.

cb_core_set_api_key()

CB Core Set API Key

cb_core_set_api_key([array<string|int, mixed> $args = [] ]) : string

Sets the encryption key that we use to encrypt and decrypt our API key in the database.

Parameters
$args : array<string|int, mixed> = []

{ Array of arguments.

@type string $Name Required. A name for the secret. We hang onto this and use it to pull the secret from our secrets manager.

@type string $Description Optional. A description for the secret. Nice to have if you want, but not entirely necessary.

@type string $SecretString Required. This is a secret! Handle with extreme care. Please.

}

Return values
string

Results of the createSecret method, or error message on failure.

cb_events_format_notifications()

cb_events_format_notifications([mixed $component_action = '' ][, mixed $args = [] ]) : mixed
Parameters
$component_action : mixed = ''
$args : mixed = []

cb_events_notifications()

cb_events_notifications([mixed $args = [] ]) : mixed
Parameters
$args : mixed = []

cb_events_add_query_vars()

cb_events_add_query_vars(mixed $query_vars) : mixed
Parameters
$query_vars : mixed

cb_events_template_include()

cb_events_template_include(mixed $template) : mixed
Parameters
$template : mixed

cb_participation_new_notifications()

cb_participation_new_notifications([mixed $data = array() ]) : mixed
Parameters
$data : mixed = array()

cb_participation_format_notifications()

cb_participation_format_notifications([mixed $component_action = '' ][, mixed $args = [] ]) : mixed
Parameters
$component_action : mixed = ''
$args : mixed = []

cb_requests_format_notifications()

cb_requests_format_notifications([mixed $component_action = '' ][, mixed $args = [] ]) : mixed
Parameters
$component_action : mixed = ''
$args : mixed = []

cb_templates_get_form_output()

Dynamically populates markup and input elements for a form.

cb_templates_get_form_output([array<string|int, mixed> $args = [] ]) : mixed

When given a heading, a component, and input arguments, this function can generate an entirely unique set of markup to put into a form element. It naturally prepends the "cb_" prefix to the beginning to stick within our namespace, then supplies the value supplied by the 'component' argument, and finally appends the value defined in the input_args['name'] argument to create a (hopefully) entirely unique input element, with the given type supplied in the input_args['type'] argument. Argument... Argument... Argument. Doesn't sound like a word anymore.

Parameters
$args : array<string|int, mixed> = []

{ An array of - you guessed it - arguments.

@type string $component The name for the component. Used
						   to generate unique name and id
						   attributes in the input elements.
@type string $heading The heading to use in the output.
						 Basically for flavor.

}

cb_templates_get_date_input()

Outputs markup for an actually nice date input. Uses Bootstrap styling and plugs in some custom data based on arguments passed.

cb_templates_get_date_input([array<string|int, mixed> $args = [] ]) : mixed
Parameters
$args : array<string|int, mixed> = []

{ An optional array of arguments. }

cb_templates_get_time_selector_input()

cb_templates_get_time_selector_input([mixed $args = [] ]) : mixed
Parameters
$args : mixed = []

cb_time_selector_input()

cb_time_selector_input([mixed $args = [] ]) : mixed
Parameters
$args : mixed = []

cb_templates_get_table()

cb_templates_get_table([mixed $component = '' ][, mixed $heading = '' ][, mixed $paginated = true ]) : mixed
Parameters
$component : mixed = ''
$heading : mixed = ''
$paginated : mixed = true

cb_transactions_format_notifications()

cb_transactions_format_notifications([mixed $component_action = '' ][, mixed $args = [] ]) : mixed
Parameters
$component_action : mixed = ''
$args : mixed = []

cb_groups_format_notifications()

cb_groups_format_notifications(mixed $component_action[, mixed $args = [] ]) : mixed
Parameters
$component_action : mixed
$args : mixed = []

cb_transactions_spot_bonus_notifications()

cb_transactions_spot_bonus_notifications([mixed $args = [] ]) : mixed
Parameters
$args : mixed = []

cb_transactions_volunteer_bits_notifications()

cb_transactions_volunteer_bits_notifications([mixed $args = [] ]) : mixed
Parameters
$args : mixed = []

cb_install_bb_platform_notice()

Display notice if BuddyBoss Platform is not installed.

cb_install_bb_platform_notice() : mixed

cb_update_bb_platform_notice()

Display notice if BuddyBoss Platform is not updated.

cb_update_bb_platform_notice() : mixed

cb_bp_is_active()

Check if Confetti Bits is active.

cb_bp_is_active() : mixed

cb_is_get_request()

CB Is Get Request

cb_is_get_request() : bool

Checks if the current request is a GET request

Tags
since
1.0.0
Return values
bool

True if GET request, false otherwise

cb_is_post_request()

CB Is Post Request

cb_is_post_request() : bool

Checks if the current request is a POST request

Tags
since
1.0.0
Return values
bool

True if POST request, false otherwise

confetti_bits_admin_enqueue_script()

confetti_bits_admin_enqueue_script() : mixed

cb_save_user_birthday_anniversary_fields()

cb_save_user_birthday_anniversary_fields(mixed $user_id, mixed $notify) : mixed
Parameters
$user_id : mixed
$notify : mixed

cb_core_admin_settings_init()

cb_core_admin_settings_init() : mixed

cb_core_convert_scripts_to_modules()

Replaces our default script tags with modules.

cb_core_convert_scripts_to_modules(mixed $tag, mixed $handle, mixed $src) : mixed
Parameters
$tag : mixed
$handle : mixed
$src : mixed

cb_core_do_spot_bonuses()

cb_core_do_spot_bonuses() : mixed

cb_core_listify()

cb_core_listify(mixed $string) : mixed
Parameters
$string : mixed

cb_core_schedule_events()

cb_core_schedule_events() : mixed

cb_core_utc_to_local()

cb_core_utc_to_local([mixed $date_string = '' ]) : mixed
Parameters
$date_string : mixed = ''

        
On this page

Search results