[ 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: 843 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_disallowed_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.

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

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

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

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

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

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

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

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

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

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.

param: BP_Activity_Activity $activity Activity Object.
since: 1.5.0

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

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

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

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

bp_activity_make_nofollow_filter_callback( $matches )   X-Ref
Adds `rel="nofollow ugc"` to a link.

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

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.

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

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

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

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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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



Generated: Thu Nov 21 01:00:57 2024 Cross-referenced by PHPXref 0.7.1