[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-activity/ -> bp-activity-filters.php (summary)

Filters related to the Activity component.

File Size: 834 lines (28 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 19 functions

  bp_activity_get_moderated_activity_types()
  bp_activity_check_moderation_keys()
  bp_activity_check_blacklist_keys()
  bp_activity_filter_kses()
  bp_activity_at_name_filter()
  bp_activity_at_name_filter_updates()
  bp_activity_at_name_send_emails()
  bp_activity_make_nofollow_filter()
  bp_activity_make_nofollow_filter_callback()
  bp_activity_truncate_entry()
  bp_activity_get_js_dependencies()
  bp_activity_newest_class()
  bp_activity_timestamp_class()
  bp_activity_heartbeat_last_recorded()
  bp_activity_heartbeat_strings()
  bp_activity_filter_just_me_scope()
  bp_activity_filter_favorites_scope()
  bp_activity_filter_mentions_scope()
  bp_activity_register_personal_data_exporter()

Functions
Functions that are not part of a class:

bp_activity_get_moderated_activity_types()   X-Ref
Types of activity stream items to moderate.

since: 1.6.0
return: array $types List of the activity types to moderate.

bp_activity_check_moderation_keys( $activity )   X-Ref
Moderate the posted activity item, if it contains moderate keywords.

since: 1.6.0
param: BP_Activity_Activity $activity The activity object to check.

bp_activity_check_blacklist_keys( $activity )   X-Ref
Mark the posted activity as spam, if it contains blacklist keywords.

since: 1.6.0
param: BP_Activity_Activity $activity The activity object to check.

bp_activity_filter_kses( $content )   X-Ref
Custom kses filtering for activity content.

since: 1.1.0
return: string $content Filtered activity content.
param: string $content The activity content.

bp_activity_at_name_filter( $content, $activity_id = 0 )   X-Ref
Find and link @-mentioned users in the contents of a given item.

since: 1.2.0
return: string $content Content filtered for mentions.
param: string $content     The contents of a given item.
param: int    $activity_id The activity id. Deprecated.

bp_activity_at_name_filter_updates( $activity )   X-Ref
Catch mentions in an activity item before it is saved into the database.

If mentions are found, replace @mention text with user links and add our
hook to send mention notifications after the activity item is saved.

since: 1.5.0
param: BP_Activity_Activity $activity Activity Object.

bp_activity_at_name_send_emails( $activity )   X-Ref
Sends emails and BP notifications for users @-mentioned in an activity item.

since: 1.7.0
param: BP_Activity_Activity $activity The BP_Activity_Activity object.

bp_activity_make_nofollow_filter( $text )   X-Ref
Catch links in activity text so rel=nofollow can be added.

since: 1.2.0
return: string $text Text with rel=nofollow added to any links.
param: string $text Activity text.

bp_activity_make_nofollow_filter_callback( $matches )   X-Ref
Add rel=nofollow to a link.

since: 1.2.0
return: string $text Link with rel=nofollow added.
param: array $matches Items matched by preg_replace_callback() in bp_activity_make_nofollow_filter().

bp_activity_truncate_entry( $text, $args = array()   X-Ref
Truncate long activity entries when viewed in activity streams.

This method can only be used inside the Activity loop.

since: 1.5.0
since: 2.6.0 Added $args parameter.
return: string $excerpt The truncated text.
param: string $text The original activity entry text.
param: array  $args {

bp_activity_get_js_dependencies( $js_handles = array()   X-Ref
Include extra JavaScript dependencies for activity component.

since: 2.0.0
return: array $js_handles The new dependencies.
param: array $js_handles The original dependencies.

bp_activity_newest_class( $classes = '' )   X-Ref
Add a just-posted classes to the most recent activity item.

We use these classes to avoid pagination issues when items are loaded
dynamically into the activity stream.

since: 2.0.0
return: string $classes
param: string $classes Array of classes for most recent activity item.

bp_activity_timestamp_class( $classes = '' )   X-Ref
Check if Activity Heartbeat feature i on to add a timestamp class.

since: 2.0.0
return: string $classes
param: string $classes Array of classes for timestamp.

bp_activity_heartbeat_last_recorded( $response = array()   X-Ref
Use WordPress Heartbeat API to check for latest activity update.

since: 2.0.0
return: array $response
param: array $response Array containing Heartbeat API response.
param: array $data     Array containing data for Heartbeat API response.

bp_activity_heartbeat_strings( $strings = array()   X-Ref
Set the strings for WP HeartBeat API where needed.

since: 2.0.0
return: array $strings
param: array $strings Localized strings.

bp_activity_filter_just_me_scope( $retval = array()   X-Ref
Set up activity arguments for use with the 'just-me' scope.

since: 2.2.0
return: array $retval
param: array $retval Empty array by default.
param: array $filter Current activity arguments.

bp_activity_filter_favorites_scope( $retval = array()   X-Ref
Set up activity arguments for use with the 'favorites' scope.

since: 2.2.0
return: array $retval
param: array $retval Empty array by default.
param: array $filter Current activity arguments.

bp_activity_filter_mentions_scope( $retval = array()   X-Ref
Set up activity arguments for use with the 'favorites' scope.

since: 2.2.0
return: array $retval
param: array $retval Empty array by default.
param: array $filter Current activity arguments.

bp_activity_register_personal_data_exporter( $exporters )   X-Ref
Registers Activity personal data exporter.

since: 4.0.0
since: 5.0.0 adds an `exporter_bp_friendly_name` param to exporters.
return: array An array of personal data exporters.
param: array $exporters  An array of personal data exporters.



Generated: Thu Dec 12 01:01:36 2019 Cross-referenced by PHPXref 0.7.1