Changeset 10077 for trunk/src/bp-activity/bp-activity-filters.php
- Timestamp:
- 08/31/2015 06:51:35 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-filters.php
r9834 r10077 1 1 <?php 2 3 2 /** 4 3 * Filters related to the Activity component. … … 114 113 * Types of activity stream items to moderate. 115 114 * 116 * @since BuddyPress (1.6.0)115 * @since 1.6.0 117 116 * 118 117 * @return array $types List of the activity types to moderate. … … 127 126 * Filters the default activity types that BuddyPress should moderate. 128 127 * 129 * @since BuddyPress (1.6.0)128 * @since 1.6.0 130 129 * 131 130 * @param array $types Default activity types to moderate. … … 137 136 * Moderate the posted activity item, if it contains moderate keywords. 138 137 * 139 * @since BuddyPress (1.6.0)138 * @since 1.6.0 140 139 * 141 140 * @param BP_Activity_Activity $activity The activity object to check. … … 156 155 * Mark the posted activity as spam, if it contains blacklist keywords. 157 156 * 158 * @since BuddyPress (1.6.0)157 * @since 1.6.0 159 158 * 160 159 * @param BP_Activity_Activity $activity The activity object to check. … … 174 173 * Custom kses filtering for activity content. 175 174 * 176 * @since BuddyPress (1.1.0)175 * @since 1.1.0 177 176 * 178 177 * @uses apply_filters() To call the 'bp_activity_allowed_tags' hook. … … 209 208 * Filters the allowed HTML tags for BuddyPress Activity content. 210 209 * 211 * @since BuddyPress (1.2.0)210 * @since 1.2.0 212 211 * 213 212 * @param array $value Array of allowed HTML tags and attributes. … … 220 219 * Find and link @-mentioned users in the contents of a given item. 221 220 * 222 * @since BuddyPress (1.2.0)221 * @since 1.2.0 223 222 * 224 223 * @param string $content The contents of a given item. … … 279 278 * hook to send mention notifications after the activity item is saved. 280 279 * 281 * @since BuddyPress (1.5.0)280 * @since 1.5.0 282 281 * 283 282 * @uses bp_activity_find_mentions() … … 316 315 * Sends emails and BP notifications for users @-mentioned in an activity item. 317 316 * 318 * @since BuddyPress (1.7.0)317 * @since 1.7.0 319 318 * 320 319 * @uses bp_activity_at_message_notification() … … 345 344 * Filters BuddyPress' ability to send email notifications for @mentions. 346 345 * 347 * @since BuddyPress (1.6.0)346 * @since 1.6.0 348 347 * 349 348 * @param bool $value Whether or not BuddyPress should send a notification to the mentioned users. … … 362 361 * Catch links in activity text so rel=nofollow can be added. 363 362 * 364 * @since BuddyPress (1.2.0)363 * @since 1.2.0 365 364 * 366 365 * @param string $text Activity text. … … 375 374 * Add rel=nofollow to a link. 376 375 * 377 * @since BuddyPress (1.2.0)376 * @since 1.2.0 378 377 * 379 378 * @param array $matches Items matched by preg_replace_callback() in bp_activity_make_nofollow_filter(). … … 392 391 * This method can only be used inside the Activity loop. 393 392 * 394 * @since BuddyPress (1.5.0)393 * @since 1.5.0 395 394 * 396 395 * @uses bp_is_single_activity() … … 412 411 * Provides a filter that lets you choose whether to skip this filter on a per-activity basis. 413 412 * 414 * @since BuddyPress (2.3.0)413 * @since 2.3.0 415 414 * 416 415 * @param bool $value If true, text should be checked to see if it needs truncating. … … 429 428 * Filters the appended text for the activity excerpt. 430 429 * 431 * @since BuddyPress (1.5.0)430 * @since 1.5.0 432 431 * 433 432 * @param string $value Internationalized "Read more" text. … … 438 437 * Filters the excerpt length for the activity excerpt. 439 438 * 440 * @since BuddyPress (1.5.0)439 * @since 1.5.0 441 440 * 442 441 * @param int $value Number indicating how many words to trim the excerpt down to. … … 460 459 * Filters the composite activity excerpt entry. 461 460 * 462 * @since BuddyPress (1.5.0)461 * @since 1.5.0 463 462 * 464 463 * @param string $excerpt Excerpt text and markup to be displayed. … … 472 471 * Include extra JavaScript dependencies for activity component. 473 472 * 474 * @since BuddyPress (2.0.0)473 * @since 2.0.0 475 474 * 476 475 * @uses bp_activity_do_heartbeat() to check if heartbeat is required. … … 495 494 * dynamically into the activity stream. 496 495 * 497 * @since BuddyPress (2.0.0)496 * @since 2.0.0 498 497 * 499 498 * @param string $classes … … 515 514 * Check if Activity Heartbeat feature i on to add a timestamp class. 516 515 * 517 * @since BuddyPress (2.0.0)516 * @since 2.0.0 518 517 * 519 518 * @param string $classes … … 542 541 * Use WordPress Heartbeat API to check for latest activity update. 543 542 * 544 * @since BuddyPress (2.0.0)543 * @since 2.0.0 545 544 * 546 545 * @uses bp_activity_get_last_updated() to get the recorded date of the last activity. … … 607 606 * Set the strings for WP HeartBeat API where needed. 608 607 * 609 * @since BuddyPress (2.0.0)608 * @since 2.0.0 610 609 * 611 610 * @param array $strings Localized strings. … … 624 623 * Filter that checks whether the global heartbeat settings already exist. 625 624 * 626 * @since BuddyPress (2.0.0)625 * @since 2.0.0 627 626 * 628 627 * @param array $value Heartbeat settings array. … … 637 636 * Filters the pulse frequency to be used for the BuddyPress Activity heartbeat. 638 637 * 639 * @since BuddyPress (2.0.0)638 * @since 2.0.0 640 639 * 641 640 * @param int $value The frequency in seconds between pulses. … … 669 668 * Set up activity arguments for use with the 'just-me' scope. 670 669 * 671 * @since BuddyPress (2.2.0)670 * @since 2.2.0 672 671 * 673 672 * @param array $retval Empty array by default. … … 719 718 * Set up activity arguments for use with the 'favorites' scope. 720 719 * 721 * @since BuddyPress (2.2.0)720 * @since 2.2.0 722 721 * 723 722 * @param array $retval Empty array by default. … … 777 776 * Set up activity arguments for use with the 'favorites' scope. 778 777 * 779 * @since BuddyPress (2.2.0)778 * @since 2.2.0 780 779 * 781 780 * @param array $retval Empty array by default.
Note: See TracChangeset
for help on using the changeset viewer.