Changeset 10077
- Timestamp:
- 08/31/2015 06:51:35 AM (9 years ago)
- Location:
- trunk/src/bp-activity
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-actions.php
r9843 r10077 1 1 <?php 2 3 2 /** 4 3 * Action functions are exactly the same as screen functions, however they do … … 16 15 * Allow core components and dependent plugins to register activity actions. 17 16 * 18 * @since BuddyPress (1.2.0)17 * @since 1.2.0 19 18 * 20 19 * @uses do_action() To call 'bp_register_activity_actions' hook. … … 25 24 * Fires on bp_init to allow core components and dependent plugins to register activity actions. 26 25 * 27 * @since BuddyPress (1.2.0)26 * @since 1.2.0 28 27 */ 29 28 do_action( 'bp_register_activity_actions' ); … … 34 33 * Catch and route requests for single activity item permalinks. 35 34 * 36 * @since BuddyPress (1.2.0)35 * @since 1.2.0 37 36 * 38 37 * @uses bp_is_activity_component() … … 105 104 * Filter the intended redirect url before the redirect occurs for the single activity item. 106 105 * 107 * @since BuddyPress (1.2.2)106 * @since 1.2.2 108 107 * 109 108 * @param array Array with url to redirect to and activity related to the redirect. … … 121 120 * Delete specific activity item and redirect to previous page. 122 121 * 123 * @since BuddyPress (1.1.0)122 * @since 1.1.0 124 123 * 125 124 * @param int $activity_id Activity id to be deleted. Defaults to 0. … … 164 163 * Fires before the deletion so plugins can still fetch information about it. 165 164 * 166 * @since BuddyPress (1.5.0)165 * @since 1.5.0 167 166 * 168 167 * @param int $activity_id The activity ID. … … 180 179 * Fires after the deletion so plugins can act afterwards based on the activity. 181 180 * 182 * @since BuddyPress (1.1.0)181 * @since 1.1.0 183 182 * 184 183 * @param int $activity_id The activity ID. … … 198 197 * Mark specific activity item as spam and redirect to previous page. 199 198 * 200 * @since BuddyPress (1.6.0)199 * @since 1.6.0 201 200 * 202 201 * @param int $activity_id Activity id to be deleted. Defaults to 0. … … 233 232 * Fires before the marking activity as spam so plugins can modify things if they want to. 234 233 * 235 * @since BuddyPress (1.6.0)234 * @since 1.6.0 236 235 * 237 236 * @param int $activity_id Activity ID to be marked as spam. … … 250 249 * Fires after the marking activity as spam so plugins can act afterwards based on the activity. 251 250 * 252 * @since BuddyPress (1.6.0)251 * @since 1.6.0 253 252 * 254 253 * @param int $activity_id Activity ID that was marked as spam. … … 268 267 * Post user/group activity update. 269 268 * 270 * @since BuddyPress (1.2.0)269 * @since 1.2.0 271 270 * 272 271 * @uses is_user_logged_in() … … 298 297 * Filters the content provided in the activity input field. 299 298 * 300 * @since BuddyPress (1.2.0)299 * @since 1.2.0 301 300 * 302 301 * @param string $value Activity message being posted. … … 309 308 * Filters the item type that the activity update should be associated with. 310 309 * 311 * @since BuddyPress (1.2.0)310 * @since 1.2.0 312 311 * 313 312 * @param string $value Item type to associate with. … … 321 320 * Filters what component the activity is being to. 322 321 * 323 * @since BuddyPress (1.2.0)322 * @since 1.2.0 324 323 * 325 324 * @param string $value Chosen component to post activity to. … … 349 348 * Filters activity object for BuddyPress core and plugin authors before posting activity update. 350 349 * 351 * @since BuddyPress (1.2.0)350 * @since 1.2.0 352 351 * 353 352 * @param string $object Activity item being associated to. … … 372 371 * Post new activity comment. 373 372 * 374 * @since BuddyPress (1.2.0)373 * @since 1.2.0 375 374 * 376 375 * @uses is_user_logged_in() … … 398 397 * Filters the activity ID a comment will be in reply to. 399 398 * 400 * @since BuddyPress (1.2.0)399 * @since 1.2.0 401 400 * 402 401 * @param string $value ID of the activity being replied to. … … 407 406 * Filters the comment content for a comment reply. 408 407 * 409 * @since BuddyPress (1.2.0)408 * @since 1.2.0 410 409 * 411 410 * @param string $value Comment content being posted. … … 436 435 * Mark activity as favorite. 437 436 * 438 * @since BuddyPress (1.2.0)437 * @since 1.2.0 439 438 * 440 439 * @uses is_user_logged_in() … … 470 469 * Remove activity from favorites. 471 470 * 472 * @since BuddyPress (1.2.0)471 * @since 1.2.0 473 472 * 474 473 * @uses is_user_logged_in() … … 504 503 * Load the sitewide activity feed. 505 504 * 506 * @since BuddyPress (1.0.0)505 * @since 1.0.0 507 506 * 508 507 * @uses bp_is_activity_component() … … 536 535 * Load a user's personal activity feed. 537 536 * 538 * @since BuddyPress (1.0.0)537 * @since 1.0.0 539 538 * 540 539 * @uses bp_is_user_activity() … … 566 565 * Load a user's friends' activity feed. 567 566 * 568 * @since BuddyPress (1.0.0)567 * @since 1.0.0 569 568 * 570 569 * @uses bp_is_active() … … 599 598 * Load the activity feed for a user's groups. 600 599 * 601 * @since BuddyPress (1.2.0)600 * @since 1.2.0 602 601 * 603 602 * @uses bp_is_active() … … 640 639 * Load a user's @mentions feed. 641 640 * 642 * @since BuddyPress (1.2.0)641 * @since 1.2.0 643 642 * 644 643 * @uses bp_is_user_activity() … … 677 676 * Load a user's favorites feed. 678 677 * 679 * @since BuddyPress (1.2.0)678 * @since 1.2.0 680 679 * 681 680 * @uses bp_is_user_activity() … … 712 711 * Loads Akismet filtering for activity. 713 712 * 714 * @since BuddyPress (1.6.0)715 * @since BuddyPress (2.3.0)We only support Akismet 3+.713 * @since 1.6.0 714 * @since 2.3.0 We only support Akismet 3+. 716 715 */ 717 716 function bp_activity_setup_akismet() { … … 736 735 * Filters if BuddyPress Activity Akismet support has been disabled by another plugin. 737 736 * 738 * @since BuddyPress (1.6.0)737 * @since 1.6.0 739 738 * 740 739 * @param bool $value Return value of bp_is_akismet_active boolean function. … … 751 750 * AJAX endpoint for Suggestions API lookups. 752 751 * 753 * @since BuddyPress (2.1.0)752 * @since 2.1.0 754 753 */ 755 754 function bp_ajax_get_suggestions() { … … 783 782 * Detect a change in post type status, and initiate an activity update if necessary. 784 783 * 785 * @since BuddyPress (2.2.0)784 * @since 2.2.0 786 785 * 787 786 * @todo Support untrashing better. … … 817 816 * being untrashed. 818 817 * 819 * @since BuddyPress (2.2.0)818 * @since 2.2.0 820 819 * 821 820 * @param WP_Post $post Post data. -
trunk/src/bp-activity/bp-activity-admin.php
r10065 r10077 6 6 * help text, on which this implementation is heavily based. 7 7 * 8 * @since 1.6.0 8 9 * @package BuddyPress 9 * @since BuddyPress (1.6.0) 10 * @subpackage Activity 10 * @subpackage ActivityAdmin 11 11 */ 12 12 … … 24 24 * Register the Activity component admin screen. 25 25 * 26 * @since BuddyPress (1.6)26 * @since 1.6.0 27 27 */ 28 28 function bp_activity_add_admin_menu() { … … 50 50 * adds the Activity page to the array of these menu items. 51 51 * 52 * @since BuddyPress (1.7.0)52 * @since 1.7.0 53 53 * 54 54 * @param array $custom_menus The list of top-level BP menu items. … … 68 68 * table row. 69 69 * 70 * @since BuddyPress (1.6.0)70 * @since 1.6.0 71 71 */ 72 72 function bp_activity_admin_reply() { … … 138 138 * Handle save/update of screen options for the Activity component admin screen. 139 139 * 140 * @since BuddyPress (1.6.0)140 * @since 1.6.0 141 141 * 142 142 * @param string $value Will always be false unless another plugin filters it first. … … 161 161 * Hide the advanced edit meta boxes by default, so we don't clutter the screen. 162 162 * 163 * @since BuddyPress (1.6.0)163 * @since 1.6.0 164 164 * 165 165 * @param array $hidden Array of items to hide. … … 178 178 * Filters default hidden metaboxes so plugins can alter list. 179 179 * 180 * @since BuddyPress (1.6.0)180 * @since 1.6.0 181 181 * 182 182 * @param array $hidden Default metaboxes to hide. … … 195 195 * - Catches POST and GET requests related to Activity. 196 196 * 197 * @since BuddyPress (1.6.0)197 * @since 1.6.0 198 198 * 199 199 * @global object $bp BuddyPress global settings. … … 213 213 * Fires at top of Activity admin page. 214 214 * 215 * @since BuddyPress (1.6.0)215 * @since 1.6.0 216 216 * 217 217 * @param string $doaction Current $_GET action being performed in admin screen. … … 321 321 * Filters list of IDs being spammed/un-spammed/deleted. 322 322 * 323 * @since BuddyPress (1.6.0)323 * @since 1.6.0 324 324 * 325 325 * @param array $activity_ids Activity IDs to spam/un-spam/delete. … … 413 413 * Passes an activity array counts how many were spam, not spam, deleted, and IDs that were errors. 414 414 * 415 * @since BuddyPress (1.6.0)415 * @since 1.6.0 416 416 * 417 417 * @param array $value Array holding spam, not spam, deleted counts, error IDs. … … 438 438 * Filters redirect URL after activity spamming/un-spamming/deletion occurs. 439 439 * 440 * @since BuddyPress (1.6.0)440 * @since 1.6.0 441 441 * 442 442 * @param string $redirect_to URL to redirect to. … … 555 555 * Fires before redirect so plugins can do something first on save action. 556 556 * 557 * @since BuddyPress (1.6.0)557 * @since 1.6.0 558 558 * 559 559 * @param array Array holding activity object and ID that holds error. … … 570 570 * Filters URL to redirect to after saving. 571 571 * 572 * @since BuddyPress (1.6.0)572 * @since 1.6.0 573 573 * 574 574 * @param string $redirect_to URL to redirect to. … … 588 588 * Output the Activity component admin screens. 589 589 * 590 * @since BuddyPress (1.6.0)590 * @since 1.6.0 591 591 */ 592 592 function bp_activity_admin() { … … 606 606 * Display the single activity edit screen. 607 607 * 608 * @since BuddyPress (1.6.0)608 * @since 1.6.0 609 609 */ 610 610 function bp_activity_admin_edit() { … … 641 641 * Fires before activity edit form is displays so plugins can modify the activity. 642 642 * 643 * @since BuddyPress (1.6.0)643 * @since 1.6.0 644 644 * 645 645 * @param array $value Array holding single activity object that was passed by reference. … … 703 703 * Status metabox for the Activity admin edit screen. 704 704 * 705 * @since BuddyPress (1.6.0)705 * @since 1.6.0 706 706 * 707 707 * @param object $item Activity item. … … 759 759 * Primary link metabox for the Activity admin edit screen. 760 760 * 761 * @since BuddyPress (1.6.0)761 * @since 1.6.0 762 762 * 763 763 * @param object $item Activity item. … … 776 776 * User ID metabox for the Activity admin edit screen. 777 777 * 778 * @since BuddyPress (1.6.0)778 * @since 1.6.0 779 779 * 780 780 * @param object $item Activity item. … … 794 794 * Format is [activity_type] => Pretty name for activity type. 795 795 * 796 * @since BuddyPress (2.0.0)796 * @since 2.0.0 797 797 * 798 798 * @return array … … 822 822 * Activity type metabox for the Activity admin edit screen. 823 823 * 824 * @since BuddyPress (1.6.0)824 * @since 1.6.0 825 825 * 826 826 * @param object $item Activity item. … … 868 868 * Primary item ID/Secondary item ID metabox for the Activity admin edit screen. 869 869 * 870 * @since BuddyPress (1.6.0)870 * @since 1.6.0 871 871 * 872 872 * @param object $item Activity item. … … 890 890 * Display the Activity admin index screen, which contains a list of all the activities. 891 891 * 892 * @since BuddyPress (1.6.0)892 * @since 1.6.0 893 893 * 894 894 * @global BP_Activity_List_Table $bp_activity_list_table Activity screen list table. … … 958 958 * Fires before edit form is displayed so plugins can modify the activity messages. 959 959 * 960 * @since BuddyPress (1.6.0)960 * @since 1.6.0 961 961 * 962 962 * @param array $messages Array of messages to display at top of page. … … 1024 1024 * List table class for the Activity component admin page. 1025 1025 * 1026 * @since BuddyPress (1.6.0)1026 * @since 1.6.0 1027 1027 */ 1028 1028 class BP_Activity_List_Table extends WP_List_Table { … … 1033 1033 * e.g. "all", "pending", "approved", "spam"... 1034 1034 * 1035 * @since BuddyPress (1.6.0)1035 * @since 1.6.0 1036 1036 * @var string 1037 1037 */ … … 1041 1041 * How many activity items have been marked as spam. 1042 1042 * 1043 * @since BuddyPress (1.6.0)1043 * @since 1.6.0 1044 1044 * @var int 1045 1045 */ … … 1049 1049 * Store activity-to-user-ID mappings for use in the In Response To column. 1050 1050 * 1051 * @since BuddyPress (1.6.0)1051 * @since 1.6.0 1052 1052 * @var array 1053 1053 */ … … 1057 1057 * If users can comment on blog & forum activity items. 1058 1058 * 1059 * @since BuddyPress (2.2.2)1059 * @since 2.2.2 1060 1060 * 1061 1061 * @link https://buddypress.trac.wordpress.org/ticket/6277 … … 1068 1068 * Constructor. 1069 1069 * 1070 * @since BuddyPress (1.6.0)1070 * @since 1.6.0 1071 1071 */ 1072 1072 public function __construct() { … … 1087 1087 * Handle filtering of data, sorting, pagination, and any other data manipulation prior to rendering. 1088 1088 * 1089 * @since BuddyPress (1.6.0)1089 * @since 1.6.0 1090 1090 */ 1091 1091 function prepare_items() { … … 1189 1189 * Get an array of all the columns on the page. 1190 1190 * 1191 * @since BuddyPress (1.6.0)1191 * @since 1.6.0 1192 1192 * 1193 1193 * @return array Column headers. … … 1207 1207 * Get name of default primary column 1208 1208 * 1209 * @since BuddyPress (2.3.3)1209 * @since 2.3.3 1210 1210 * @access protected 1211 1211 * … … 1219 1219 * Display a message on screen when no items are found (e.g. no search matches). 1220 1220 * 1221 * @since BuddyPress (1.6.0)1221 * @since 1.6.0 1222 1222 */ 1223 1223 function no_items() { … … 1228 1228 * Output the Activity data table. 1229 1229 * 1230 * @since BuddyPress (1.6.0)1230 * @since 1.6.0 1231 1231 */ 1232 1232 function display() { … … 1258 1258 * Generate content for a single row of the table. 1259 1259 * 1260 * @since BuddyPress (1.6.0)1260 * @since 1.6.0 1261 1261 * 1262 1262 * @param object $item The current item. … … 1287 1287 * Get the list of views available on this table (e.g. "all", "spam"). 1288 1288 * 1289 * @since BuddyPress (1.6.0)1289 * @since 1.6.0 1290 1290 */ 1291 1291 function get_views() { … … 1301 1301 * Fires inside listing of views so plugins can add their own. 1302 1302 * 1303 * @since BuddyPress (1.6.0)1303 * @since 1.6.0 1304 1304 * 1305 1305 * @param string $url_base Current URL base for view. … … 1314 1314 * Get bulk actions. 1315 1315 * 1316 * @since BuddyPress (1.6.0)1316 * @since 1.6.0 1317 1317 * 1318 1318 * @return array Key/value pairs for the bulk actions dropdown. … … 1327 1327 * Filters the default bulk actions so plugins can add custom actions. 1328 1328 * 1329 * @since BuddyPress (1.6.0)1329 * @since 1.6.0 1330 1330 * 1331 1331 * @param array $actions Default available actions for bulk operations. … … 1337 1337 * Get the table column titles. 1338 1338 * 1339 * @since BuddyPress (1.6.0)1339 * @since 1.6.0 1340 1340 * 1341 1341 * @see WP_List_Table::single_row_columns() … … 1358 1358 * Currently, returns an empty array (no columns are sortable). 1359 1359 * 1360 * @since BuddyPress (1.6.0)1360 * @since 1.6.0 1361 1361 * @todo For this to work, BP_Activity_Activity::get() needs updating 1362 1362 * to support ordering by specific fields. … … 1375 1375 * Markup for the "filter" part of the form (i.e. which activity type to display). 1376 1376 * 1377 * @since BuddyPress (1.6.0)1377 * @since 1.6.0 1378 1378 * 1379 1379 * @param string $which 'top' or 'bottom'. … … 1459 1459 * Checkbox column markup. 1460 1460 * 1461 * @since BuddyPress (1.6.0)1461 * @since 1.6.0 1462 1462 * 1463 1463 * @see WP_List_Table::single_row_columns() … … 1472 1472 * Author column markup. 1473 1473 * 1474 * @since BuddyPress (1.6.0)1474 * @since 1.6.0 1475 1475 * 1476 1476 * @see WP_List_Table::single_row_columns() … … 1485 1485 * Action column markup. 1486 1486 * 1487 * @since BuddyPress (2.0.0)1487 * @since 2.0.0 1488 1488 * 1489 1489 * @see WP_List_Table::single_row_columns() … … 1506 1506 * Called "comment" in the CSS so we can re-use some WP core CSS. 1507 1507 * 1508 * @since BuddyPress (1.6.0)1508 * @since 1.6.0 1509 1509 * 1510 1510 * @see WP_List_Table::single_row_columns() … … 1565 1565 * Filters available actions for plugins to alter. 1566 1566 * 1567 * @since BuddyPress (1.6.0)1567 * @since 1.6.0 1568 1568 * 1569 1569 * @param array $actions Array of available actions user could use. … … 1584 1584 * Filters current activity item content. 1585 1585 * 1586 * @since BuddyPress (1.2.0)1586 * @since 1.2.0 1587 1587 * 1588 1588 * @param array $item Array index holding current activity item content. … … 1593 1593 * Filters current activity item action. 1594 1594 * 1595 * @since BuddyPress (1.2.0)1595 * @since 1.2.0 1596 1596 * 1597 1597 * @var array $item Array index holding current activity item action. … … 1606 1606 * "In response to" column markup. 1607 1607 * 1608 * @since BuddyPress (1.6.0)1608 * @since 1.6.0 1609 1609 * 1610 1610 * @see WP_List_Table::single_row_columns() … … 1618 1618 * Filters default list of default root activity types. 1619 1619 * 1620 * @since BuddyPress (1.6.0)1620 * @since 1.6.0 1621 1621 * 1622 1622 * @param array $value Array of default activity types. … … 1649 1649 * avoiding duplicate queries. 1650 1650 * 1651 * @since BuddyPress (1.6.0)1651 * @since 1.6.0 1652 1652 * 1653 1653 * @param int $activity_id Activity ID to retrieve User ID for. … … 1690 1690 * functions from working as intended. 1691 1691 * 1692 * @since BuddyPress (2.0.0)1692 * @since 2.0.0 1693 1693 * 1694 1694 * @param array $item An array version of the BP_Activity_Activity object. … … 1742 1742 * Filters if an activity item can be commented on or not. 1743 1743 * 1744 * @since BuddyPress (2.0.0)1744 * @since 2.0.0 1745 1745 * 1746 1746 * @param bool $can_comment Whether an activity item can be commented on or not. … … 1755 1755 * items plus their comments. This method converts it to a flat array. 1756 1756 * 1757 * @since BuddyPress (1.6.0)1757 * @since 1.6.0 1758 1758 * 1759 1759 * @param array $tree Source array. -
trunk/src/bp-activity/bp-activity-akismet.php
r9843 r10077 3 3 * Akismet support for BuddyPress' Activity Stream. 4 4 * 5 * @since 1.6.0 5 6 * @package BuddyPress 6 * @since BuddyPress (1.6.0) 7 * @subpackage Activity 7 * @subpackage ActivityAkismet 8 8 */ 9 9 … … 14 14 * Akismet support for the Activity component. 15 15 * 16 * @since BuddyPress (1.6.0)17 * @since BuddyPress (2.3.0)We only support Akismet 3+.16 * @since 1.6.0 17 * @since 2.3.0 We only support Akismet 3+. 18 18 */ 19 19 class BP_Akismet { … … 23 23 * @access protected 24 24 * @var BP_Activity_Activity 25 * @since BuddyPress (1.6.0)25 * @since 1.6.0 26 26 */ 27 27 protected $last_activity = null; … … 30 30 * Constructor. 31 31 * 32 * @since BuddyPress (1.6.0)32 * @since 1.6.0 33 33 */ 34 34 public function __construct() { … … 39 39 * Hook Akismet into the activity stream. 40 40 * 41 * @since BuddyPress (1.6.0)41 * @since 1.6.0 42 42 */ 43 43 protected function setup_actions() { … … 71 71 * akismet_comment_row_action() function. Thanks! 72 72 * 73 * @since BuddyPress (1.6.0)73 * @since 1.6.0 74 74 * 75 75 * @param array $actions The hover links. … … 118 118 * Filters the list of actions for the current activity's row. 119 119 * 120 * @since BuddyPress (1.6.0)120 * @since 1.6.0 121 121 * 122 122 * @param array $actions Array of available actions for the current activity item's row. … … 132 132 * by Akismet to help detect spam activity. 133 133 * 134 * @since BuddyPress (1.6.0)134 * @since 1.6.0 135 135 * 136 136 * @see https://plugins.trac.wordpress.org/ticket/1232 … … 161 161 * default AJAX implementation; see bp_dtheme_post_update(). 162 162 * 163 * @since BuddyPress (1.6.0)163 * @since 1.6.0 164 164 * 165 165 * @see bp_dtheme_post_update() … … 187 187 * This function is intended to be used inside the activity stream loop. 188 188 * 189 * @since BuddyPress (1.6.0)189 * @since 1.6.0 190 190 */ 191 191 public function add_activity_spam_button() { … … 215 215 * This function is intended to be used inside the activity stream loop. 216 216 * 217 * @since BuddyPress (1.6.0)217 * @since 1.6.0 218 218 */ 219 219 public function add_activity_comment_spam_button() { … … 242 242 * Get a filterable list of activity types that Akismet should automatically check for spam. 243 243 * 244 * @since BuddyPress (1.6.0)244 * @since 1.6.0 245 245 * 246 246 * @static … … 253 253 * Filters the list of activity types that Akismet should automatically check for spam. 254 254 * 255 * @since BuddyPress (1.6.0)255 * @since 1.6.0 256 256 * 257 257 * @param array Array of default activity types for Akismet to check. … … 263 263 * Mark activity item as spam. 264 264 * 265 * @since BuddyPress (1.6.0)265 * @since 1.6.0 266 266 * 267 267 * @param BP_Activity_Activity $activity Activity item being spammed. … … 277 277 * Fires after marking an activity item has been marked as spam. 278 278 * 279 * @since BuddyPress (1.6.0)279 * @since 1.6.0 280 280 * 281 281 * @param BP_Activity_Activity $activity Activity object being marked as spam. … … 291 291 * Mark activity item as ham. 292 292 * 293 * @since BuddyPress (1.6.0)293 * @since 1.6.0 294 294 * 295 295 * @param BP_Activity_Activity $activity Activity item being hammed. … … 306 306 * Fires after marking an activity item has been marked as ham. 307 307 * 308 * @since BuddyPress (1.6.0)308 * @since 1.6.0 309 309 * 310 310 * @param BP_Activity_Activity $activity Activity object being marked as ham. … … 320 320 * Build a data package for the Akismet service to inspect. 321 321 * 322 * @since BuddyPress (1.6.0)322 * @since 1.6.0 323 323 * 324 324 * @see http://akismet.com/development/api/#comment-check … … 360 360 * Filters activity data before being sent to Akismet to inspect. 361 361 * 362 * @since BuddyPress (1.6.0)362 * @since 1.6.0 363 363 * 364 364 * @param array $activity_data Array of activity data for Akismet to inspect. … … 371 371 * Check if the activity item is spam or ham. 372 372 * 373 * @since BuddyPress (1.6.0)373 * @since 1.6.0 374 374 * 375 375 * @see http://akismet.com/development/api/ … … 404 404 * Fires after an activity item has been proven to be spam, but before officially being marked as spam. 405 405 * 406 * @since BuddyPress (1.6.0)406 * @since 1.6.0 407 407 * 408 408 * @param BP_Activity_Activity $activity The activity item proven to be spam. … … 423 423 * Update activity meta after a manual spam change (user-initiated). 424 424 * 425 * @since BuddyPress (1.6.0)425 * @since 1.6.0 426 426 * 427 427 * @param BP_Activity_Activity $activity The activity to check. … … 440 440 * Update activity meta after a manual ham change (user-initiated). 441 441 * 442 * @since BuddyPress (1.6.0)442 * @since 1.6.0 443 443 * 444 444 * @param BP_Activity_Activity $activity The activity to check. … … 457 457 * Update activity meta after an automatic spam check (not user-initiated). 458 458 * 459 * @since BuddyPress (1.6.0)459 * @since 1.6.0 460 460 * 461 461 * @param BP_Activity_Activity $activity The activity to check. … … 495 495 * Props to WordPress core Akismet plugin for a lot of this. 496 496 * 497 * @since BuddyPress (1.6.0)497 * @since 1.6.0 498 498 * 499 499 * @param array $activity_data Packet of information to submit to Akismet. … … 566 566 * Filters user agent when sending to Akismet to add BuddyPress info. 567 567 * 568 * @since BuddyPress (1.6.0)568 * @since 1.6.0 569 569 * 570 570 * @param string $user_agent User agent string, as generated by Akismet. … … 580 580 * Adds a "History" meta box to the activity edit screen. 581 581 * 582 * @since BuddyPress (1.6.0)582 * @since 1.6.0 583 583 * 584 584 * @param string $screen_action The type of screen that has been requested. … … 596 596 * History meta box for the Activity admin edit screen. 597 597 * 598 * @since BuddyPress (1.6.0)598 * @since 1.6.0 599 599 * 600 600 * @see https://buddypress.trac.wordpress.org/ticket/3907 … … 617 617 * Update an activity item's Akismet history. 618 618 * 619 * @since BuddyPress (1.6.0)619 * @since 1.6.0 620 620 * 621 621 * @param int $activity_id Activity item ID. … … 638 638 * Get an activity item's Akismet history. 639 639 * 640 * @since BuddyPress (1.6.0)640 * @since 1.6.0 641 641 * 642 642 * @param int $activity_id Activity item ID. … … 662 662 * grow to be quite large. 663 663 * 664 * @since BuddyPress (1.6.0)664 * @since 1.6.0 665 665 * 666 666 * @global wpdb $wpdb WordPress database object. … … 674 674 * Filters the threshold for how many days old Akismet metadata needs to be before being automatically deleted. 675 675 * 676 * @since BuddyPress (1.6.0)676 * @since 1.6.0 677 677 * 678 678 * @param integer 15 How many days old metadata needs to be. -
trunk/src/bp-activity/bp-activity-cache.php
r9833 r10077 1 1 <?php 2 3 2 /** 4 3 * Functions related to the BuddyPress Activity component and the WP Cache. 5 4 * 6 * @since BuddyPress (1.6.0) 5 * @since 1.6.0 6 * @package BuddyPress 7 * @subpackage ActivityCache 7 8 */ 8 9 … … 38 39 * Clear a cached activity item when that item is updated. 39 40 * 40 * @since BuddyPress (2.0.0)41 * @since 2.0.0 41 42 * 42 43 * @param BP_Activity_Activity $activity … … 51 52 * Clear cached data for deleted activity items. 52 53 * 53 * @since BuddyPress (2.0.0)54 * @since 2.0.0 54 55 * 55 56 * @param array $deleted_ids IDs of deleted activity items. -
trunk/src/bp-activity/bp-activity-classes.php
r9819 r10077 4 4 * 5 5 * @package BuddyPress 6 * @subpackage Activity 6 * @subpackage ActivityClasses 7 7 */ 8 8 -
trunk/src/bp-activity/bp-activity-cssjs.php
r10054 r10077 1 1 <?php 2 3 2 /** 4 3 * Activity component CSS/JS … … 14 13 * Enqueue @mentions JS. 15 14 * 16 * @since BuddyPress (2.1.0)15 * @since 2.1.0 17 16 */ 18 17 function bp_activity_mentions_script() { … … 51 50 * friends to the page for quicker @mentions lookups. 52 51 * 53 * @since BuddyPress (2.1.0)52 * @since 2.1.0 54 53 */ 55 54 do_action( 'bp_activity_mentions_prime_results' ); … … 61 60 * Bind the mentions listener to a wp_editor instance when TinyMCE initializes. 62 61 * 63 * @since BuddyPress (2.3.3)62 * @since 2.3.3 64 63 * 65 64 * @param array $settings An array with TinyMCE config. -
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. -
trunk/src/bp-activity/bp-activity-functions.php
r9853 r10077 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Activity Functions. … … 16 15 * Check whether the $bp global lists an activity directory page. 17 16 * 18 * @since BuddyPress (1.5.0)17 * @since 1.5.0 19 18 * 20 19 * @return bool True if activity directory page is found, otherwise false. … … 39 38 * add_filter( 'bp_activity_do_mentions', '__return_false' ); 40 39 * 41 * @since BuddyPress (1.8.0)40 * @since 1.8.0 42 41 * 43 42 * @uses apply_filters() To call 'bp_activity_do_mentions' hook. … … 50 49 * Filters whether or not mentions are enabled. 51 50 * 52 * @since BuddyPress (1.8.0)51 * @since 1.8.0 53 52 * 54 53 * @param bool $enabled True to enable mentions, false to disable. … … 61 60 * mentions suggestions? 62 61 * 63 * @since BuddyPress (2.1.0)62 * @since 2.1.0 64 63 * 65 64 * @return bool True if mentions scripts should be loaded. … … 72 71 * Filters whether or not BuddyPress should load mentions scripts and assets. 73 72 * 74 * @since BuddyPress (2.1.0)73 * @since 2.1.0 75 74 * 76 75 * @param bool $load_mentions True to load mentions assets, false otherwise. … … 83 82 * Locate usernames in an activity content string, as designated by an @ sign. 84 83 * 85 * @since BuddyPress (1.5.0)84 * @since 1.5.0 86 85 * 87 86 * @param string $content The content of the activity, usually found in … … 126 125 * Reset a user's unread mentions list and count. 127 126 * 128 * @since BuddyPress (1.5.0)127 * @since 1.5.0 129 128 * 130 129 * @uses bp_delete_user_meta() … … 145 144 * Currently, only used in {@link bp_activity_delete()}. 146 145 * 147 * @since BuddyPress (1.5.0)146 * @since 1.5.0 148 147 * 149 148 * @uses bp_activity_find_mentions() … … 185 184 * for @mentions. 186 185 * 187 * @since BuddyPress (1.7.0)186 * @since 1.7.0 188 187 * 189 188 * @uses bp_get_user_meta() … … 243 242 * Determine a user's "mentionname", the name used for that user in @-mentions. 244 243 * 245 * @since BuddyPress (1.9.0)244 * @since 1.9.0 246 245 * 247 246 * @param int|string $user_id ID of the user to get @-mention name for. … … 268 267 * Get a user ID from a "mentionname", the name used for a user in @-mentions. 269 268 * 270 * @since BuddyPress (1.9.0)269 * @since 1.9.0 271 270 * 272 271 * @param string $mentionname Username of user in @-mentions. … … 323 322 * sites, etc) will not work. 324 323 * 325 * @since BuddyPress (1.1.0)324 * @since 1.1.0 326 325 * 327 326 * @param string $component_id The unique string ID of the component. … … 361 360 * Filters the action type being set for the current activity item. 362 361 * 363 * @since BuddyPress (1.1.0)362 * @since 1.1.0 364 363 * 365 364 * @param array $array Array of arguments for action type being set. … … 387 386 * Set tracking arguments for a given post type. 388 387 * 389 * @since BuddyPress (2.2.0)388 * @since 2.2.0 390 389 * 391 390 * @global $wp_post_types … … 443 442 * Get tracking arguments for a specific post type. 444 443 * 445 * @since BuddyPress (2.2.0)444 * @since 2.2.0 446 445 * 447 446 * @param string $post_type Name of the post type. … … 500 499 * Filters tracking arguments for a specific post type. 501 500 * 502 * @since BuddyPress (2.2.0)501 * @since 2.2.0 503 502 * 504 503 * @param object $post_type_activity The tracking arguments of the post type. … … 511 510 * Get tracking arguments for all post types. 512 511 * 513 * @since BuddyPress (2.2.0)512 * @since 2.2.0 514 513 * 515 514 * @return array List of post types with their tracking arguments. … … 533 532 * Filters tracking arguments for all post types. 534 533 * 535 * @since BuddyPress (2.2.0)534 * @since 2.2.0 536 535 * 537 536 * @param array $post_types_tracking_args Array of post types with … … 544 543 * Get all components' activity actions, sorted by their position attribute. 545 544 * 546 * @since BuddyPress (2.2.0)545 * @since 2.2.0 547 546 * 548 547 * @return object Actions ordered by their position. … … 590 589 * Retrieve the current action from a component and key. 591 590 * 592 * @since BuddyPress (1.1.0)591 * @since 1.1.0 593 592 * 594 593 * @uses apply_filters() To call the 'bp_activity_get_action' hook. … … 616 615 * Filters the current action by component and key. 617 616 * 618 * @since BuddyPress (1.1.0)617 * @since 1.1.0 619 618 * 620 619 * @param string|bool $retval The action key. … … 628 627 * Fetch details of all registered activity types. 629 628 * 630 * @since BuddyPress (1.7.0)629 * @since 1.7.0 631 630 * 632 631 * @return array array( type => description ), ... … … 650 649 * Filters the available activity types. 651 650 * 652 * @since BuddyPress (1.7.0)651 * @since 1.7.0 653 652 * 654 653 * @param array $actions Array of registered activity types. … … 662 661 * Get a users favorite activity stream items. 663 662 * 664 * @since BuddyPress (1.2.0)663 * @since 1.2.0 665 664 * 666 665 * @uses bp_get_user_meta() … … 684 683 * Filters the favorited activity items for a specified user. 685 684 * 686 * @since BuddyPress (1.2.0)685 * @since 1.2.0 687 686 * 688 687 * @param array $favs Array of user's favorited activity items. … … 694 693 * Add an activity stream item as a favorite for a user. 695 694 * 696 * @since BuddyPress (1.2.0)695 * @since 1.2.0 697 696 * 698 697 * @uses is_user_logged_in() … … 747 746 * Fires if bp_activity_update_meta() for favorite_count is successful and before returning a true value for success. 748 747 * 749 * @since BuddyPress (1.2.1)748 * @since 1.2.1 750 749 * 751 750 * @param int $activity_id ID of the activity item being favorited. … … 763 762 * Fires if bp_activity_update_meta() for favorite_count is unsuccessful and before returning a false value for failure. 764 763 * 765 * @since BuddyPress (1.5.0)764 * @since 1.5.0 766 765 * 767 766 * @param int $activity_id ID of the activity item being favorited. … … 777 776 * Remove an activity stream item as a favorite for a user. 778 777 * 779 * @since BuddyPress (1.2.0)778 * @since 1.2.0 780 779 * 781 780 * @uses is_user_logged_in() … … 828 827 * Fires if bp_update_user_meta() is successful and before returning a true value for success. 829 828 * 830 * @since BuddyPress (1.2.1)829 * @since 1.2.1 831 830 * 832 831 * @param int $activity_id ID of the activity item being unfavorited. … … 857 856 * Check whether an activity item exists with a given content string. 858 857 * 859 * @since BuddyPress (1.1.0)858 * @since 1.1.0 860 859 * 861 860 * @uses BP_Activity_Activity::check_exists_by_content() {@link BP_Activity_Activity} … … 871 870 * Filters the results of the check for whether an activity item exists by specified content. 872 871 * 873 * @since BuddyPress (1.1.0)872 * @since 1.1.0 874 873 * 875 874 * @param BP_Activity_Activity $content_exists ID of the activity if found, else null. … … 881 880 * Retrieve the last time activity was updated. 882 881 * 883 * @since BuddyPress (1.0.0)882 * @since 1.0.0 884 883 * 885 884 * @uses BP_Activity_Activity::get_last_updated() {@link BP_Activity_Activity} … … 893 892 * Filters the value for the last updated time for an activity item. 894 893 * 895 * @since BuddyPress (1.1.0)894 * @since 1.1.0 896 895 * 897 896 * @param BP_Activity_Activity $last_updated Date last updated. … … 903 902 * Retrieve the number of favorite activity stream items a user has. 904 903 * 905 * @since BuddyPress (1.2.0)904 * @since 1.2.0 906 905 * 907 906 * @uses BP_Activity_Activity::total_favorite_count() {@link BP_Activity_Activity} … … 926 925 * Delete a meta entry from the DB for an activity stream item. 927 926 * 928 * @since BuddyPress (1.2.0)927 * @since 1.2.0 929 928 * 930 929 * @global object $wpdb WordPress database access object. … … 970 969 * Get metadata for a given activity item. 971 970 * 972 * @since BuddyPress (1.2.0)971 * @since 1.2.0 973 972 * 974 973 * @uses apply_filters() To call the 'bp_activity_get_meta' hook. … … 992 991 * Filters the metadata for a specified activity item. 993 992 * 994 * @since BuddyPress (1.5.0)993 * @since 1.5.0 995 994 * 996 995 * @param mixed $retval The meta values for the activity item. … … 1005 1004 * Update a piece of activity meta. 1006 1005 * 1007 * @since BuddyPress (1.2.0)1006 * @since 1.2.0 1008 1007 * 1009 1008 * @param int $activity_id ID of the activity item whose metadata is being updated. … … 1028 1027 * Add a piece of activity metadata. 1029 1028 * 1030 * @since BuddyPress (2.0.0)1029 * @since 2.0.0 1031 1030 * 1032 1031 * @param int $activity_id ID of the activity item. … … 1052 1051 * Completely remove a user's activity data. 1053 1052 * 1054 * @since BuddyPress (1.5.0)1053 * @since 1.5.0 1055 1054 * 1056 1055 * @uses is_user_logged_in() … … 1084 1083 * Fires after the removal of all of a user's activity data. 1085 1084 * 1086 * @since BuddyPress (1.5.0)1085 * @since 1.5.0 1087 1086 * 1088 1087 * @param int $user_id ID of the user being deleted. … … 1096 1095 * Mark all of the user's activity as spam. 1097 1096 * 1098 * @since BuddyPress (1.6.0)1097 * @since 1.6.0 1099 1098 * 1100 1099 * @global object $wpdb WordPress database access object. … … 1154 1153 * Fires after all activity data from a user has been marked as spam. 1155 1154 * 1156 * @since BuddyPress (1.6.0)1155 * @since 1.6.0 1157 1156 * 1158 1157 * @param int $user_id ID of the user whose activity is being marked as spam. … … 1166 1165 * Mark all of the user's activity as ham (not spam). 1167 1166 * 1168 * @since BuddyPress (1.6.0)1167 * @since 1.6.0 1169 1168 * 1170 1169 * @global object $wpdb WordPress database access object. … … 1225 1224 * Fires after all activity data from a user has been marked as ham. 1226 1225 * 1227 * @since BuddyPress (1.6.0)1226 * @since 1.6.0 1228 1227 * 1229 1228 * @param int $user_id ID of the user whose activity is being marked as ham. … … 1237 1236 * Register the activity stream actions for updates. 1238 1237 * 1239 * @since BuddyPress (1.6.0)1238 * @since 1.6.0 1240 1239 */ 1241 1240 function bp_activity_register_activity_actions() { … … 1264 1263 * Allows plugin authors to add their own activity actions alongside the core actions. 1265 1264 * 1266 * @since BuddyPress (1.6.0)1265 * @since 1.6.0 1267 1266 */ 1268 1267 do_action( 'bp_activity_register_activity_actions' ); … … 1300 1299 * Filters the string for the activity action being returned. 1301 1300 * 1302 * @since BuddyPress (2.0.0)1301 * @since 2.0.0 1303 1302 * 1304 1303 * @param BP_Activity_Activity $action Action string being requested. … … 1316 1315 * Format 'activity_update' activity actions. 1317 1316 * 1318 * @since BuddyPress (2.0.0)1317 * @since 2.0.0 1319 1318 * 1320 1319 * @param string $action Static activity action. … … 1329 1328 * Filters the formatted activity action update string. 1330 1329 * 1331 * @since BuddyPress (1.2.0)1330 * @since 1.2.0 1332 1331 * 1333 1332 * @param string $action Activity action string value. … … 1340 1339 * Format 'activity_comment' activity actions. 1341 1340 * 1342 * @since BuddyPress (2.0.0)1341 * @since 2.0.0 1343 1342 * 1344 1343 * @param string $action Static activity action. … … 1353 1352 * Filters the formatted activity action comment string. 1354 1353 * 1355 * @since BuddyPress (1.2.0)1354 * @since 1.2.0 1356 1355 * 1357 1356 * @param string $action Activity action string value. … … 1364 1363 * Format activity action strings for custom post types. 1365 1364 * 1366 * @since BuddyPress (2.2.0)1365 * @since 2.2.0 1367 1366 * 1368 1367 * @param string $action Static activity action. … … 1411 1410 * Filters the formatted custom post type activity post action string. 1412 1411 * 1413 * @since BuddyPress (2.2.0)1412 * @since 2.2.0 1414 1413 * 1415 1414 * @param string $action Activity action string value. … … 1435 1434 * - 'per_page' (false) 1436 1435 * 1437 * @since BuddyPress (1.2.0)1436 * @since 1.2.0 1438 1437 * 1439 1438 * @see BP_Activity_Activity::get() For more information on accepted arguments … … 1534 1533 * Filters the requested activity item(s). 1535 1534 * 1536 * @since BuddyPress (1.2.0)1535 * @since 1.2.0 1537 1536 * 1538 1537 * @param BP_Activity_Activity $activity Requested activity object. … … 1545 1544 * Fetch specific activity items. 1546 1545 * 1547 * @since BuddyPress (1.2.0)1546 * @since 1.2.0 1548 1547 * 1549 1548 * @see BP_Activity_Activity::get() For more information on accepted arguments. … … 1589 1588 * Filters the requested specific activity item. 1590 1589 * 1591 * @since BuddyPress (1.2.0)1590 * @since 1.2.0 1592 1591 * 1593 1592 * @param BP_Activity_Activity $activity Requested activity object. … … 1601 1600 * Add an activity item. 1602 1601 * 1603 * @since BuddyPress (1.1.0)1602 * @since 1.1.0 1604 1603 * 1605 1604 * @uses wp_parse_args() … … 1701 1700 * Fires at the end of the execution of adding a new activity item, before returning the new activity item ID. 1702 1701 * 1703 * @since BuddyPress (1.1.0)1702 * @since 1.1.0 1704 1703 * 1705 1704 * @param array $r Array of parsed arguments for the activity item being added. … … 1713 1712 * Post an activity update. 1714 1713 * 1715 * @since BuddyPress (1.2.0)1714 * @since 1.2.0 1716 1715 * 1717 1716 * @uses wp_parse_args() … … 1754 1753 * Filters the new activity content for current activity item. 1755 1754 * 1756 * @since BuddyPress (1.2.0)1755 * @since 1.2.0 1757 1756 * 1758 1757 * @param string $activity_content Activity content posted by user. … … 1763 1762 * Filters the activity primary link for current activity item. 1764 1763 * 1765 * @since BuddyPress (1.2.0)1764 * @since 1.2.0 1766 1765 * 1767 1766 * @param string $primary_link Link to the profile for the user who posted the activity. … … 1781 1780 * Filters the latest update content for the activity item. 1782 1781 * 1783 * @since BuddyPress (1.6.0)1782 * @since 1.6.0 1784 1783 * 1785 1784 * @param string $r Content of the activity update. … … 1797 1796 * Fires at the end of an activity post update, before returning the updated activity item ID. 1798 1797 * 1799 * @since BuddyPress (1.2.0)1798 * @since 1.2.0 1800 1799 * 1801 1800 * @param string $content Content of the activity post update. … … 1811 1810 * Create an activity item for a newly published post type post. 1812 1811 * 1813 * @since BuddyPress (2.2.0)1812 * @since 2.2.0 1814 1813 * 1815 1814 * @param int $post_id ID of the new post. … … 1861 1860 * that lets components or plugins bail early if needed. 1862 1861 * 1863 * @since BuddyPress (2.2.0)1862 * @since 2.2.0 1864 1863 * 1865 1864 * @param bool $value Whether or not to continue. … … 1935 1934 * Fires after the publishing of an activity item for a newly published post type post. 1936 1935 * 1937 * @since BuddyPress (2.2.0)1936 * @since 2.2.0 1938 1937 * 1939 1938 * @param int $activity_id ID of the newly published activity item. … … 1949 1948 * Update the activity item for a custom post type entry. 1950 1949 * 1951 * @since BuddyPress (2.2.0)1950 * @since 2.2.0 1952 1951 * 1953 1952 * @param WP_Post $post Post item. … … 2005 2004 * Fires after the updating of an activity item for a custom post type entry. 2006 2005 * 2007 * @since BuddyPress (2.2.0)2006 * @since 2.2.0 2008 2007 * 2009 2008 * @param WP_Post $post Post object. … … 2018 2017 * Unpublish an activity for the custom post type. 2019 2018 * 2020 * @since BuddyPress (2.2.0)2019 * @since 2.2.0 2021 2020 * 2022 2021 * @param int $post_id ID of the post being unpublished. … … 2055 2054 * Fires after the unpublishing for the custom post type. 2056 2055 * 2057 * @since BuddyPress (2.2.0)2056 * @since 2.2.0 2058 2057 * 2059 2058 * @param array $delete_activity_args Array of arguments for activity deletion. … … 2069 2068 * Add an activity comment. 2070 2069 * 2071 * @since BuddyPress (1.2.0)2070 * @since 1.2.0 2072 2071 * 2073 2072 * @uses wp_parse_args() … … 2140 2139 * Filters the content of a new comment. 2141 2140 * 2142 * @since BuddyPress (1.2.0)2141 * @since 1.2.0 2143 2142 * 2144 2143 * @param string $r Content for the newly posted comment. … … 2173 2172 * Fires near the end of an activity comment posting, before the returning of the comment ID. 2174 2173 * 2175 * @since BuddyPress (1.2.0)2174 * @since 1.2.0 2176 2175 * 2177 2176 * @param int $comment_id ID of the newly posted activity comment. … … 2192 2191 * Fetch the activity_id for an existing activity entry in the DB. 2193 2192 * 2194 * @since BuddyPress (1.2.0)2193 * @since 1.2.0 2195 2194 * 2196 2195 * @see BP_Activity_Activity::get() For more information on accepted arguments. … … 2219 2218 * Filters the activity ID being requested. 2220 2219 * 2221 * @since BuddyPress (1.2.0)2220 * @since 1.2.0 2222 2221 * 2223 2222 * @param BP_Activity_Activity $value ID returned by BP_Activity_Activity get_id() method with provided arguments. … … 2248 2247 * If you are deleting an activity comment please use bp_activity_delete_comment(); 2249 2248 * 2250 * @since BuddyPress (1.0.0)2249 * @since 1.0.0 2251 2250 * 2252 2251 * @see BP_Activity_Activity::get() For more information on accepted arguments. … … 2289 2288 * Fires before an activity item proceeds to be deleted. 2290 2289 * 2291 * @since BuddyPress (1.5.0)2290 * @since 1.5.0 2292 2291 * 2293 2292 * @param array $args Array of arguments to be used with the activity deletion. … … 2318 2317 * Fires after the activity item has been deleted. 2319 2318 * 2320 * @since BuddyPress (1.0.0)2319 * @since 1.0.0 2321 2320 * 2322 2321 * @param array $args Array of arguments used with the activity deletion. … … 2327 2326 * Fires after the activity item has been deleted. 2328 2327 * 2329 * @since BuddyPress (1.2.0)2328 * @since 1.2.0 2330 2329 * 2331 2330 * @param array $activity_ids_deleted Array of affected activity item IDs. … … 2343 2342 * You should use bp_activity_delete() instead. 2344 2343 * 2345 * @since BuddyPress (1.1.0)2346 * @deprecated BuddyPress (1.2.0)2344 * @since 1.1.0 2345 * @deprecated 1.2.0 2347 2346 * 2348 2347 * @uses wp_parse_args() … … 2370 2369 * Delete an activity item by activity id. 2371 2370 * 2372 * @since BuddyPress (1.1.0)2371 * @since 1.1.0 2373 2372 * 2374 2373 * @uses bp_activity_delete() … … 2387 2386 * You should use bp_activity_delete() instead. 2388 2387 * 2389 * @since BuddyPress (1.1.0)2390 * @deprecated BuddyPress (1.2.0)2388 * @since 1.1.0 2389 * @deprecated 1.2.0 2391 2390 * 2392 2391 * @uses bp_activity_delete() … … 2413 2412 * You should use bp_activity_delete() instead. 2414 2413 * 2415 * @since BuddyPress (1.1.0)2416 * @deprecated BuddyPress (1.2.0)2414 * @since 1.1.0 2415 * @deprecated 1.2.0 2417 2416 * 2418 2417 * @uses bp_activity_delete() … … 2433 2432 * Delete an activity comment. 2434 2433 * 2435 * @since BuddyPress (1.2.0)2434 * @since 1.2.0 2436 2435 * 2437 2436 * @uses apply_filters() To call the 'bp_activity_delete_comment_pre' hook. … … 2459 2458 * handle the deletion of child comments differently. Make sure you return false. 2460 2459 * 2461 * @since BuddyPress (1.2.0)2460 * @since 1.2.0 2462 2461 * 2463 2462 * @param bool $value Whether BuddyPress should continue or not. … … 2486 2485 * Fires at the end of the deletion of an activity comment, before returning success. 2487 2486 * 2488 * @since BuddyPress (1.2.0)2487 * @since 1.2.0 2489 2488 * 2490 2489 * @param int $activity_id ID of the activity that has had a comment deleted from. … … 2499 2498 * Delete an activity comment's children. 2500 2499 * 2501 * @since BuddyPress (1.2.0)2500 * @since 1.2.0 2502 2501 * 2503 2502 * @uses BP_Activity_Activity::get_child_comments() {@link BP_Activity_Activity} … … 2537 2536 * have it available. 2538 2537 * 2539 * @since BuddyPress (1.2.0)2538 * @since 1.2.0 2540 2539 * 2541 2540 * @uses bp_get_root_domain() … … 2583 2582 * Filters the activity permalink for the specified activity item. 2584 2583 * 2585 * @since BuddyPress (1.2.0)2584 * @since 1.2.0 2586 2585 * 2587 2586 * @param array $array Array holding activity permalink and activity item object. … … 2593 2592 * Hide a user's activity. 2594 2593 * 2595 * @since BuddyPress (1.2.0)2594 * @since 1.2.0 2596 2595 * 2597 2596 * @uses BP_Activity_Activity::hide_all_for_user() {@link BP_Activity_Activity} … … 2617 2616 * As of BuddyPress 2.3, this function is no longer in use. 2618 2617 * 2619 * @since BuddyPress (1.2.0)2618 * @since 1.2.0 2620 2619 * 2621 2620 * @uses esc_attr() … … 2679 2678 * Filters the activity content that had a thumbnail replace images. 2680 2679 * 2681 * @since BuddyPress (1.2.0)2680 * @since 1.2.0 2682 2681 * 2683 2682 * @param string $content Activity content that had images replaced in. … … 2695 2694 * activity in the future. 2696 2695 * 2697 * @since BuddyPress (2.3.0)2696 * @since 2.3.0 2698 2697 * 2699 2698 * @param string $content The content of the activity item. … … 2718 2717 * Use this filter to change the media extractor used to extract media info for the activity item. 2719 2718 * 2720 * @since BuddyPress (2.3.0)2719 * @since 2.3.0 2721 2720 * 2722 2721 * @param string $extractor Class name. … … 2730 2729 * Filter the arguments passed to the media extractor when creating an Activity summary. 2731 2730 * 2732 * @since BuddyPress (2.3.0)2731 * @since 2.3.0 2733 2732 * 2734 2733 * @param array $args Array of bespoke data for the media extractor. … … 2803 2802 * Filter the results of the media extractor when creating an Activity summary. 2804 2803 * 2805 * @since BuddyPress (2.3.0)2804 * @since 2.3.0 2806 2805 * 2807 2806 * @param array $extracted_media Extracted media item. See {@link BP_Media_Extractor::extract()} for format. … … 2840 2839 * Filters the newly-generated summary for the activity item. 2841 2840 * 2842 * @since BuddyPress (2.3.0)2841 * @since 2.3.0 2843 2842 * 2844 2843 * @param string $summary Activity summary HTML. … … 2853 2852 * Fetch whether the current user is allowed to mark items as spam. 2854 2853 * 2855 * @since BuddyPress (1.6.0)2854 * @since 1.6.0 2856 2855 * 2857 2856 * @return bool True if user is allowed to mark activity items as spam. … … 2862 2861 * Filters whether the current user should be able to mark items as spam. 2863 2862 * 2864 * @since BuddyPress (1.6.0)2863 * @since 1.6.0 2865 2864 * 2866 2865 * @param bool $moderate Whether or not the current user has bp_moderate capability. … … 2872 2871 * Mark an activity item as spam. 2873 2872 * 2874 * @since BuddyPress (1.6.0)2873 * @since 1.6.0 2875 2874 * 2876 2875 * @param BP_Activity_Activity $activity The activity item to be spammed. … … 2907 2906 * Fires at the end of the process to mark an activity item as spam. 2908 2907 * 2909 * @since BuddyPress (1.6.0)2908 * @since 1.6.0 2910 2909 * 2911 2910 * @param BP_Activity_Activity $activity Activity item being marked as spam. … … 2919 2918 * Mark an activity item as ham. 2920 2919 * 2921 * @since BuddyPress (1.6.0)2920 * @since 1.6.0 2922 2921 * 2923 2922 * @param BP_Activity_Activity $activity The activity item to be hammed. Passed by reference. … … 2954 2953 * Fires at the end of the process to mark an activity item as ham. 2955 2954 * 2956 * @since BuddyPress (1.6.0)2955 * @since 1.6.0 2957 2956 * 2958 2957 * @param BP_Activity_Activity $activity Activity item being marked as ham. … … 2976 2975 * For that, see {@link bp_activity_comment_embed()}. 2977 2976 * 2978 * @since BuddyPress (1.5.0)2977 * @since 1.5.0 2979 2978 * 2980 2979 * @see BP_Embed … … 3001 3000 * the cache if they are not there yet. 3002 3001 * 3003 * @since BuddyPress (1.5.0)3002 * @since 1.5.0 3004 3003 * 3005 3004 * @see BP_Embed … … 3021 3020 * When a user clicks on a "Read More" item, make sure embeds are correctly parsed and shown for the expanded content. 3022 3021 * 3023 * @since BuddyPress (1.5.0)3022 * @since 1.5.0 3024 3023 * 3025 3024 * @see BP_Embed … … 3046 3045 * once the comments are done being processed. 3047 3046 * 3048 * @since BuddyPress (1.5.0)3047 * @since 1.5.0 3049 3048 * 3050 3049 * @see bp_activity_comment_embed() … … 3061 3060 * Used during {@link BP_Embed::parse_oembed()} via {@link bp_activity_embed()}. 3062 3061 * 3063 * @since BuddyPress (1.5.0)3062 * @since 1.5.0 3064 3063 * 3065 3064 * @see BP_Embed::parse_oembed() … … 3082 3081 * Used during {@link BP_Embed::parse_oembed()} via {@link bp_activity_embed()}. 3083 3082 * 3084 * @since BuddyPress (1.5.0)3083 * @since 1.5.0 3085 3084 * 3086 3085 * @see BP_Embed::parse_oembed() … … 3101 3100 * Should we use Heartbeat to refresh activities? 3102 3101 * 3103 * @since BuddyPress (2.0.0)3102 * @since 2.0.0 3104 3103 * 3105 3104 * @uses bp_is_activity_heartbeat_active() to check if heartbeat setting is on. -
trunk/src/bp-activity/bp-activity-loader.php
r9936 r10077 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Activity Streams Loader. … … 16 15 * Main Activity Class. 17 16 * 18 * @since BuddyPress (1.5.0)17 * @since 1.5.0 19 18 */ 20 19 class BP_Activity_Component extends BP_Component { … … 23 22 * Start the activity component setup process. 24 23 * 25 * @since BuddyPress (1.5.0)24 * @since 1.5.0 26 25 */ 27 26 public function __construct() { … … 39 38 * Include component files. 40 39 * 41 * @since BuddyPress (1.5.0)40 * @since 1.5.0 42 41 * 43 42 * @see BP_Component::includes() for a description of arguments. … … 81 80 * backwards compatibility. 82 81 * 83 * @since BuddyPress (1.5.0)82 * @since 1.5.0 84 83 * 85 84 * @see BP_Component::setup_globals() for a description of arguments. … … 125 124 * Set up component navigation. 126 125 * 127 * @since BuddyPress (1.5.0)126 * @since 1.5.0 128 127 * 129 128 * @see BP_Component::setup_nav() for a description of arguments. … … 233 232 * Set up the component entries in the WordPress Admin Bar. 234 233 * 235 * @since BuddyPress (1.5.0)234 * @since 1.5.0 236 235 * 237 236 * @see BP_Component::setup_nav() for a description of the $wp_admin_nav … … 330 329 * Set up the title for pages and <title>. 331 330 * 332 * @since BuddyPress (1.5.0)331 * @since 1.5.0 333 332 * 334 333 * @uses bp_is_activity_component() … … 360 359 * Set up actions necessary for the component. 361 360 * 362 * @since BuddyPress (1.6.0)361 * @since 1.6.0 363 362 */ 364 363 public function setup_actions() { … … 373 372 * Setup cache groups. 374 373 * 375 * @since BuddyPress (2.2.0)374 * @since 2.2.0 376 375 */ 377 376 public function setup_cache_groups() { -
trunk/src/bp-activity/bp-activity-notifications.php
r9834 r10077 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Activity Notifications. … … 16 15 * Send email and BP notifications when a user is mentioned in an update. 17 16 * 18 * @since BuddyPress (1.2.0)17 * @since 1.2.0 19 18 * 20 19 * @uses bp_notifications_add_notification() … … 103 102 * Filters the user email that the @mention notification will be sent to. 104 103 * 105 * @since BuddyPress (1.2.0)104 * @since 1.2.0 106 105 * 107 106 * @param string $to User email the notification is being sent to. … … 112 111 * Filters the @mention notification subject that will be sent to user. 113 112 * 114 * @since BuddyPress (1.2.0)113 * @since 1.2.0 115 114 * 116 115 * @param string $subject Email notification subject text. … … 122 121 * Filters the @mention notification message that will be sent to user. 123 122 * 124 * @since BuddyPress (1.2.0)123 * @since 1.2.0 125 124 * 126 125 * @param string $message Email notification message text. … … 138 137 * Fires after the sending of an @mention email notification. 139 138 * 140 * @since BuddyPress (1.5.0)139 * @since 1.5.0 141 140 * 142 141 * @param BP_Activity_Activity $activity Activity Item object. … … 152 151 * Send email and BP notifications when an activity item receives a comment. 153 152 * 154 * @since BuddyPress (1.2.0)153 * @since 1.2.0 155 154 * 156 155 * @uses bp_get_user_meta() … … 221 220 * Filters the user email that the new comment notification will be sent to. 222 221 * 223 * @since BuddyPress (1.2.0)222 * @since 1.2.0 224 223 * 225 224 * @param string $to User email the notification is being sent to. … … 230 229 * Filters the new comment notification subject that will be sent to user. 231 230 * 232 * @since BuddyPress (1.2.0)231 * @since 1.2.0 233 232 * 234 233 * @param string $subject Email notification subject text. … … 240 239 * Filters the new comment notification message that will be sent to user. 241 240 * 242 * @since BuddyPress (1.2.0)241 * @since 1.2.0 243 242 * 244 243 * @param string $message Email notification message text. … … 255 254 * Fires after the sending of a reply to an update email notification. 256 255 * 257 * @since BuddyPress (1.5.0)256 * @since 1.5.0 258 257 * 259 258 * @param int $user_id ID of the original activity item author. … … 309 308 * Filters the user email that the new comment reply notification will be sent to. 310 309 * 311 * @since BuddyPress (1.2.0)310 * @since 1.2.0 312 311 * 313 312 * @param string $to User email the notification is being sent to. … … 318 317 * Filters the new comment reply notification subject that will be sent to user. 319 318 * 320 * @since BuddyPress (1.2.0)319 * @since 1.2.0 321 320 * 322 321 * @param string $subject Email notification subject text. … … 328 327 * Filters the new comment reply notification message that will be sent to user. 329 328 * 330 * @since BuddyPress (1.2.0)329 * @since 1.2.0 331 330 * 332 331 * @param string $message Email notification message text. … … 343 342 * Fires after the sending of a reply to a reply email notification. 344 343 * 345 * @since BuddyPress (1.5.0)344 * @since 1.5.0 346 345 * 347 346 * @param int $user_id ID of the parent activity item author. … … 359 358 * Helper method to map action arguments to function parameters. 360 359 * 361 * @since BuddyPress (1.9.0)360 * @since 1.9.0 362 361 * 363 362 * @param int $comment_id … … 374 373 * Format notifications related to activity. 375 374 * 376 * @since BuddyPress (1.5.0)375 * @since 1.5.0 377 376 * 378 377 * @uses bp_loggedin_user_domain() … … 420 419 * or bp_activity_multiple_at_mentions_notification. 421 420 * 422 * @since BuddyPress (1.5.0)421 * @since 1.5.0 423 422 * 424 423 * @param string $string HTML anchor tag for the mention. … … 438 437 * or bp_activity_multiple_at_mentions_notification. 439 438 * 440 * @since BuddyPress (1.5.0)439 * @since 1.5.0 441 440 * 442 441 * @param array $array Array holding the content and permalink for the mention notification. … … 455 454 * Fires right before returning the formatted activity notifications. 456 455 * 457 * @since BuddyPress (1.2.0)456 * @since 1.2.0 458 457 * 459 458 * @param string $action The type of activity item. … … 475 474 * 'bp_activity_at_name_send_emails' equivalent helper function. 476 475 * 477 * @since BuddyPress (1.9.0)476 * @since 1.9.0 478 477 * 479 478 * @param object $activity … … 501 500 * Mark at-mention notifications as read when users visit their Mentions page. 502 501 * 503 * @since BuddyPress (1.5.0)502 * @since 1.5.0 504 503 * 505 504 * @uses bp_notifications_mark_all_notifications_by_type() … … 522 521 * Mark at-mention notification as read when user visits the activity with the mention. 523 522 * 524 * @since BuddyPress (2.0.0)523 * @since 2.0.0 525 524 * 526 525 * @param object BP_Activity_Activity … … 544 543 * Delete at-mention notifications when the corresponding activity item is deleted. 545 544 * 546 * @since BuddyPress (2.0.0)545 * @since 2.0.0 547 546 * 548 547 * @param array $activity_ids_deleted IDs of deleted activity items. -
trunk/src/bp-activity/bp-activity-screens.php
r9834 r10077 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Activity Screens. … … 18 17 * Load the Activity directory. 19 18 * 20 * @since BuddyPress (1.5.0)19 * @since 1.5.0 21 20 * 22 21 * @uses bp_displayed_user_id() … … 35 34 * Fires right before the loading of the Activity directory screen template file. 36 35 * 37 * @since BuddyPress (1.5.0)36 * @since 1.5.0 38 37 */ 39 38 do_action( 'bp_activity_screen_index' ); … … 42 41 * Filters the template to load for the Activity directory screen. 43 42 * 44 * @since BuddyPress (1.5.0)43 * @since 1.5.0 45 44 * 46 45 * @param string $template Path to the activity template to load. … … 54 53 * Load the 'My Activity' page. 55 54 * 56 * @since BuddyPress (1.0.0)55 * @since 1.0.0 57 56 * 58 57 * @uses do_action() To call the 'bp_activity_screen_my_activity' hook. … … 65 64 * Fires right before the loading of the "My Activity" screen template file. 66 65 * 67 * @since BuddyPress (1.0.0)66 * @since 1.0.0 68 67 */ 69 68 do_action( 'bp_activity_screen_my_activity' ); … … 72 71 * Filters the template to load for the "My Activity" screen. 73 72 * 74 * @since BuddyPress (1.0.0)73 * @since 1.0.0 75 74 * 76 75 * @param string $template Path to the activity template to load. … … 82 81 * Load the 'My Friends' activity page. 83 82 * 84 * @since BuddyPress (1.0.0)83 * @since 1.0.0 85 84 * 86 85 * @uses bp_is_active() … … 100 99 * Fires right before the loading of the "My Friends" screen template file. 101 100 * 102 * @since BuddyPress (1.2.0)101 * @since 1.2.0 103 102 */ 104 103 do_action( 'bp_activity_screen_friends' ); … … 107 106 * Filters the template to load for the "My Friends" screen. 108 107 * 109 * @since BuddyPress (1.0.0)108 * @since 1.0.0 110 109 * 111 110 * @param string $template Path to the activity template to load. … … 117 116 * Load the 'My Groups' activity page. 118 117 * 119 * @since BuddyPress (1.2.0)118 * @since 1.2.0 120 119 * 121 120 * @uses bp_is_active() … … 135 134 * Fires right before the loading of the "My Groups" screen template file. 136 135 * 137 * @since BuddyPress (1.2.0)136 * @since 1.2.0 138 137 */ 139 138 do_action( 'bp_activity_screen_groups' ); … … 142 141 * Filters the template to load for the "My Groups" screen. 143 142 * 144 * @since BuddyPress (1.2.0)143 * @since 1.2.0 145 144 * 146 145 * @param string $template Path to the activity template to load. … … 152 151 * Load the 'Favorites' activity page. 153 152 * 154 * @since BuddyPress (1.2.0)153 * @since 1.2.0 155 154 * 156 155 * @uses bp_update_is_item_admin() … … 166 165 * Fires right before the loading of the "Favorites" screen template file. 167 166 * 168 * @since BuddyPress (1.2.0)167 * @since 1.2.0 169 168 */ 170 169 do_action( 'bp_activity_screen_favorites' ); … … 173 172 * Filters the template to load for the "Favorites" screen. 174 173 * 175 * @since BuddyPress (1.2.0)174 * @since 1.2.0 176 175 * 177 176 * @param string $template Path to the activity template to load. … … 183 182 * Load the 'Mentions' activity page. 184 183 * 185 * @since BuddyPress (1.2.0)184 * @since 1.2.0 186 185 * 187 186 * @uses bp_update_is_item_admin() … … 197 196 * Fires right before the loading of the "Mentions" screen template file. 198 197 * 199 * @since BuddyPress (1.2.0)198 * @since 1.2.0 200 199 */ 201 200 do_action( 'bp_activity_screen_mentions' ); … … 204 203 * Filters the template to load for the "Mentions" screen. 205 204 * 206 * @since BuddyPress (1.2.0)205 * @since 1.2.0 207 206 * 208 207 * @param string $template Path to the activity template to load. … … 214 213 * Reset the logged-in user's new mentions data when he visits his mentions screen. 215 214 * 216 * @since BuddyPress (1.5.0)215 * @since 1.5.0 217 216 * 218 217 * @uses bp_is_my_profile() … … 229 228 * Load the page for a single activity item. 230 229 * 231 * @since BuddyPress (1.2.0)230 * @since 1.2.0 232 231 * 233 232 * @uses bp_is_activity_component() … … 303 302 * Filters the access permission for a single activity view. 304 303 * 305 * @since BuddyPress (1.2.0)304 * @since 1.2.0 306 305 * 307 306 * @param array $access Array holding the current $has_access value and current activity item instance. … … 312 311 * Fires before the loading of a single activity template file. 313 312 * 314 * @since BuddyPress (1.2.0)313 * @since 1.2.0 315 314 * 316 315 * @param BP_Activity_Activity $activity Object representing the current activity item being displayed. … … 342 341 * Filters the template to load for a single activity screen. 343 342 * 344 * @since BuddyPress (1.0.0)343 * @since 1.0.0 345 344 * 346 345 * @param string $template Path to the activity template to load. … … 353 352 * Add activity notifications settings to the notifications settings page. 354 353 * 355 * @since BuddyPress (1.2.0)354 * @since 1.2.0 356 355 * 357 356 * @uses bp_get_user_meta() … … 405 404 * Fires inside the closing </tbody> tag for activity screen notification settings. 406 405 * 407 * @since BuddyPress (1.2.0)406 * @since 1.2.0 408 407 */ 409 408 do_action( 'bp_activity_screen_notification_settings' ) ?> … … 423 422 * activity template parts to the_title and the_content areas of a theme. 424 423 * 425 * @since BuddyPress (1.7.0)424 * @since 1.7.0 426 425 */ 427 426 class BP_Activity_Theme_Compat { … … 430 429 * Set up the activity component theme compatibility. 431 430 * 432 * @since BuddyPress (1.7.0)431 * @since 1.7.0 433 432 */ 434 433 public function __construct() { … … 439 438 * Set up the theme compatibility hooks, if we're looking at an activity page. 440 439 * 441 * @since BuddyPress (1.7.0)440 * @since 1.7.0 442 441 */ 443 442 public function is_activity() { … … 473 472 * This is to mirror how WordPress has {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 474 473 * 475 * @since BuddyPress (1.8.0)474 * @since 1.8.0 476 475 * 477 476 * @param string $templates The templates from bp_get_theme_compat_templates(). … … 484 483 * Filters the template hierarchy for the activity directory page. 485 484 * 486 * @since BuddyPress (1.8.0)485 * @since 1.8.0 487 486 * 488 487 * @param array $index-directory Array holding template names to be merged into template list. … … 502 501 * Update the global $post with directory data. 503 502 * 504 * @since BuddyPress (1.7.0)503 * @since 1.7.0 505 504 */ 506 505 public function directory_dummy_post() { … … 521 520 * Filter the_content with the groups index template part. 522 521 * 523 * @since BuddyPress (1.7.0)522 * @since 1.7.0 524 523 */ 525 524 public function directory_content() { … … 534 533 * This is to mirror how WordPress has {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 535 534 * 536 * @since BuddyPress (1.8.0)535 * @since 1.8.0 537 536 * 538 537 * @param string $templates The templates from bp_get_theme_compat_templates(). … … 545 544 * Filters the template hierarchy for the activity permalink pages. 546 545 * 547 * @since BuddyPress (1.8.0)546 * @since 1.8.0 548 547 * 549 548 * @param array $index Array holding template names to be merged into template list. … … 563 562 * Update the global $post with the displayed user's data. 564 563 * 565 * @since BuddyPress (1.7.0)564 * @since 1.7.0 566 565 */ 567 566 public function single_dummy_post() { … … 582 581 * Filter the_content with the members' activity permalink template part. 583 582 * 584 * @since BuddyPress (1.7.0)583 * @since 1.7.0 585 584 */ 586 585 public function single_dummy_content() { -
trunk/src/bp-activity/bp-activity-template.php
r9834 r10077 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Activity Template Functions. … … 14 13 * Output the activity component slug. 15 14 * 16 * @since BuddyPress (1.5.0)15 * @since 1.5.0 17 16 * 18 17 * @uses bp_get_activity_slug() … … 24 23 * Return the activity component slug. 25 24 * 26 * @since BuddyPress (1.5.0)25 * @since 1.5.0 27 26 * 28 27 * @uses apply_filters() To call the 'bp_get_activity_slug' hook. … … 35 34 * Filters the activity component slug. 36 35 * 37 * @since BuddyPress (1.5.0)36 * @since 1.5.0 38 37 * 39 38 * @param string $slug Activity component slug. … … 45 44 * Output the activity component root slug. 46 45 * 47 * @since BuddyPress (1.5.0)46 * @since 1.5.0 48 47 * 49 48 * @uses bp_get_activity_root_slug() … … 55 54 * Return the activity component root slug. 56 55 * 57 * @since BuddyPress (1.5.0)56 * @since 1.5.0 58 57 * 59 58 * @uses apply_filters() To call the 'bp_get_activity_root_slug' hook. … … 66 65 * Filters the activity component root slug. 67 66 * 68 * @since BuddyPress (1.5.0)67 * @since 1.5.0 69 68 * 70 69 * @param string $root_slug Activity component root slug. … … 76 75 * Output activity directory permalink. 77 76 * 78 * @since BuddyPress (1.5.0)77 * @since 1.5.0 79 78 * 80 79 * @uses bp_get_activity_directory_permalink() … … 86 85 * Return activity directory permalink. 87 86 * 88 * @since BuddyPress (1.5.0)87 * @since 1.5.0 89 88 * 90 89 * @uses trailingslashit() … … 100 99 * Filters the activity directory permalink. 101 100 * 102 * @since BuddyPress (1.5.0)101 * @since 1.5.0 103 102 * 104 103 * @param string $url Permalink url for the activity directory. … … 112 111 * This is responsible for loading a group of activity items and displaying them. 113 112 * 114 * @since BuddyPress (1.0.0)113 * @since 1.0.0 115 114 */ 116 115 class BP_Activity_Template { … … 118 117 * The loop iterator. 119 118 * 120 * @since BuddyPress (1.5.0)119 * @since 1.5.0 121 120 * @access public 122 121 * @var int … … 127 126 * The activity count. 128 127 * 129 * @since BuddyPress (1.5.0)128 * @since 1.5.0 130 129 * @access public 131 130 * @var int … … 136 135 * The total activity count. 137 136 * 138 * @since BuddyPress (1.5.0)137 * @since 1.5.0 139 138 * @access public 140 139 * @var int … … 145 144 * Array of activities located by the query. 146 145 * 147 * @since BuddyPress (1.5.0)146 * @since 1.5.0 148 147 * @access public 149 148 * @var array … … 154 153 * The activity object currently being iterated on. 155 154 * 156 * @since BuddyPress (1.5.0)155 * @since 1.5.0 157 156 * @access public 158 157 * @var object … … 163 162 * A flag for whether the loop is currently being iterated. 164 163 * 165 * @since BuddyPress (1.5.0)164 * @since 1.5.0 166 165 * @access public 167 166 * @var bool … … 172 171 * URL parameter key for activity pagination. Default: 'acpage'. 173 172 * 174 * @since BuddyPress (2.1.0)173 * @since 2.1.0 175 174 * @var string 176 175 */ … … 180 179 * The page number being requested. 181 180 * 182 * @since BuddyPress (1.5.0)181 * @since 1.5.0 183 182 * @access public 184 183 * @var int … … 189 188 * The number of items being requested per page. 190 189 * 191 * @since BuddyPress (1.5.0)190 * @since 1.5.0 192 191 * @access public 193 192 * @var int … … 198 197 * An HTML string containing pagination links. 199 198 * 200 * @since BuddyPress (1.5.0)199 * @since 1.5.0 201 200 * @access public 202 201 * @var string … … 207 206 * The displayed user's full name. 208 207 * 209 * @since BuddyPress (1.5.0)208 * @since 1.5.0 210 209 * @access public 211 210 * @var string … … 457 456 * Fires right before the rewinding of activity posts. 458 457 * 459 * @since BuddyPress (1.1.0)458 * @since 1.1.0 460 459 */ 461 460 do_action( 'activity_loop_end' ); … … 494 493 * Fires if the current activity item is the first in the activity loop. 495 494 * 496 * @since BuddyPress (1.1.0)495 * @since 1.1.0 497 496 */ 498 497 do_action('activity_loop_start'); … … 508 507 * template functions to display a list of activity items. 509 508 * 510 * @since BuddyPress (1.0.0)509 * @since 1.0.0 511 510 * 512 511 * @global object $activities_template {@link BP_Activity_Template} … … 713 712 * into bp-custom.php or your theme's functions.php. 714 713 * 715 * @since BuddyPress (1.6.0)714 * @since 1.6.0 716 715 * 717 716 * @param bool $value True if BuddyPress should enable afilter support. … … 748 747 * Filters whether or not there are activity items to display. 749 748 * 750 * @since BuddyPress (1.1.0)749 * @since 1.1.0 751 750 * 752 751 * @param bool $value Whether or not there are activity items to display. … … 760 759 * Determine if there are still activities left in the loop. 761 760 * 762 * @since BuddyPress (1.0.0)761 * @since 1.0.0 763 762 * 764 763 * @global object $activities_template {@link BP_Activity_Template} … … 775 774 * Get the current activity object in the loop. 776 775 * 777 * @since BuddyPress (1.0.0)776 * @since 1.0.0 778 777 * 779 778 * @global object $activities_template {@link BP_Activity_Template} … … 790 789 * Output the URL for the Load More link. 791 790 * 792 * @since BuddyPress (2.1.0)791 * @since 2.1.0 793 792 */ 794 793 function bp_activity_load_more_link() { … … 798 797 * Get the URL for the Load More link. 799 798 * 800 * @since BuddyPress (2.1.0)799 * @since 2.1.0 801 800 */ 802 801 function bp_get_activity_load_more_link() { … … 809 808 * Filters the Load More link URL. 810 809 * 811 * @since BuddyPress (2.1.0)810 * @since 2.1.0 812 811 * 813 812 * @param string $link The "Load More" link URL with appropriate query args. … … 821 820 * Output the activity pagination count. 822 821 * 823 * @since BuddyPress (1.0.0)822 * @since 1.0.0 824 823 * 825 824 * @global object $activities_template {@link BP_Activity_Template} … … 833 832 * Return the activity pagination count. 834 833 * 835 * @since BuddyPress (1.2.0)834 * @since 1.2.0 836 835 * 837 836 * @global object $activities_template {@link BP_Activity_Template} … … 860 859 * Output the activity pagination links. 861 860 * 862 * @since BuddyPress (1.0.0)861 * @since 1.0.0 863 862 * 864 863 * @uses bp_get_activity_pagination_links() … … 871 870 * Return the activity pagination links. 872 871 * 873 * @since BuddyPress (1.0.0)872 * @since 1.0.0 874 873 * 875 874 * @global object $activities_template {@link BP_Activity_Template} … … 884 883 * Filters the activity pagination link output. 885 884 * 886 * @since BuddyPress (1.0.0)885 * @since 1.0.0 887 886 * 888 887 * @param string $pag_links Output for the activity pagination links. … … 894 893 * Return true when there are more activity items to be shown than currently appear. 895 894 * 896 * @since BuddyPress (1.5.0)895 * @since 1.5.0 897 896 * 898 897 * @global object $activities_template {@link BP_Activity_Template} … … 919 918 * Filters whether there are more activity items to display. 920 919 * 921 * @since BuddyPress (1.5.0)920 * @since 1.5.0 922 921 * 923 922 * @param bool $has_more_items Whether or not there are more activity items to display. … … 929 928 * Output the activity count. 930 929 * 931 * @since BuddyPress (1.2.0)930 * @since 1.2.0 932 931 * 933 932 * @uses bp_get_activity_count() … … 940 939 * Return the activity count. 941 940 * 942 * @since BuddyPress (1.2.0)941 * @since 1.2.0 943 942 * 944 943 * @global object $activities_template {@link BP_Activity_Template} … … 953 952 * Filters the activity count for the activity template. 954 953 * 955 * @since BuddyPress (1.2.0)954 * @since 1.2.0 956 955 * 957 956 * @param int $activity_count The count for total activity. … … 963 962 * Output the number of activities per page. 964 963 * 965 * @since BuddyPress (1.2.0)964 * @since 1.2.0 966 965 * 967 966 * @uses bp_get_activity_per_page() … … 974 973 * Return the number of activities per page. 975 974 * 976 * @since BuddyPress (1.2.0)975 * @since 1.2.0 977 976 * 978 977 * @global object $activities_template {@link BP_Activity_Template} … … 987 986 * Filters the activity posts per page value. 988 987 * 989 * @since BuddyPress (1.2.0)988 * @since 1.2.0 990 989 * 991 990 * @param int $pag_num How many post should be displayed for pagination. … … 997 996 * Output the activities title. 998 997 * 999 * @since BuddyPress (1.0.0)998 * @since 1.0.0 1000 999 * 1001 1000 * @uses bp_get_activities_title() … … 1009 1008 * Return the activities title. 1010 1009 * 1011 * @since BuddyPress (1.0.0)1010 * @since 1.0.0 1012 1011 * 1013 1012 * @global string $bp_activity_title … … 1023 1022 * Filters the activities title for the activity template. 1024 1023 * 1025 * @since BuddyPress (1.0.0)1024 * @since 1.0.0 1026 1025 * 1027 1026 * @param string $bp_activity_title The title to be displayed. … … 1033 1032 * {@internal Missing Description} 1034 1033 * 1035 * @since BuddyPress (1.0.0)1034 * @since 1.0.0 1036 1035 * 1037 1036 * @uses bp_get_activities_no_activity() … … 1045 1044 * {@internal Missing Description} 1046 1045 * 1047 * @since BuddyPress (1.0.0)1046 * @since 1.0.0 1048 1047 * 1049 1048 * @global string $bp_activity_no_activity … … 1059 1058 * Filters the text used when there is no activity to display. 1060 1059 * 1061 * @since BuddyPress (1.0.0)1060 * @since 1.0.0 1062 1061 * 1063 1062 * @param string $bp_activity_no_activity Text to display for no activity. … … 1069 1068 * Output the activity ID. 1070 1069 * 1071 * @since BuddyPress (1.2.0)1070 * @since 1.2.0 1072 1071 * 1073 1072 * @uses bp_get_activity_id() … … 1080 1079 * Return the activity ID. 1081 1080 * 1082 * @since BuddyPress (1.2.0)1081 * @since 1.2.0 1083 1082 * 1084 1083 * @global object $activities_template {@link BP_Activity_Template} … … 1093 1092 * Filters the activity ID being displayed. 1094 1093 * 1095 * @since BuddyPress (1.2.0)1094 * @since 1.2.0 1096 1095 * 1097 1096 * @param int $id The activity ID. … … 1103 1102 * Output the activity item ID. 1104 1103 * 1105 * @since BuddyPress (1.2.0)1104 * @since 1.2.0 1106 1105 * 1107 1106 * @uses bp_get_activity_item_id() … … 1114 1113 * Return the activity item ID. 1115 1114 * 1116 * @since BuddyPress (1.2.0)1115 * @since 1.2.0 1117 1116 * 1118 1117 * @global object $activities_template {@link BP_Activity_Template} … … 1127 1126 * Filters the activity item ID being displayed. 1128 1127 * 1129 * @since BuddyPress (1.2.0)1128 * @since 1.2.0 1130 1129 * 1131 1130 * @param int $item_id The activity item ID. … … 1137 1136 * Output the activity secondary item ID. 1138 1137 * 1139 * @since BuddyPress (1.2.0)1138 * @since 1.2.0 1140 1139 * 1141 1140 * @uses bp_get_activity_secondary_item_id() … … 1148 1147 * Return the activity secondary item ID. 1149 1148 * 1150 * @since BuddyPress (1.2.0)1149 * @since 1.2.0 1151 1150 * 1152 1151 * @global object $activities_template {@link BP_Activity_Template} … … 1161 1160 * Filters the activity secondary item ID being displayed. 1162 1161 * 1163 * @since BuddyPress (1.2.0)1162 * @since 1.2.0 1164 1163 * 1165 1164 * @param int $secondary_item_id The activity secondary item ID. … … 1171 1170 * Output the date the activity was recorded. 1172 1171 * 1173 * @since BuddyPress (1.2.0)1172 * @since 1.2.0 1174 1173 * 1175 1174 * @uses bp_get_activity_date_recorded() … … 1182 1181 * Return the date the activity was recorded. 1183 1182 * 1184 * @since BuddyPress (1.2.0)1183 * @since 1.2.0 1185 1184 * 1186 1185 * @global object $activities_template {@link BP_Activity_Template} … … 1195 1194 * Filters the date the activity was recorded. 1196 1195 * 1197 * @since BuddyPress (1.2.0)1196 * @since 1.2.0 1198 1197 * 1199 1198 * @param int $date_recorded The activity's date. … … 1205 1204 * Output the display name of the member who posted the activity. 1206 1205 * 1207 * @since BuddyPress (2.1.0)1206 * @since 2.1.0 1208 1207 * 1209 1208 * @uses bp_get_activity_member_display_name() … … 1216 1215 * Return the display name of the member who posted the activity. 1217 1216 * 1218 * @since BuddyPress (2.1.0)1217 * @since 2.1.0 1219 1218 * 1220 1219 * @global object $activities_template {@link BP_Activity_Template} … … 1233 1232 * Filters the display name of the member who posted the activity. 1234 1233 * 1235 * @since BuddyPress (2.1.0)1234 * @since 2.1.0 1236 1235 * 1237 1236 * @param int $retval Display name for the member who posted. … … 1243 1242 * Output the activity object name. 1244 1243 * 1245 * @since BuddyPress (1.2.0)1244 * @since 1.2.0 1246 1245 * 1247 1246 * @uses bp_get_activity_object_name() … … 1254 1253 * Return the activity object name. 1255 1254 * 1256 * @since BuddyPress (1.2.0)1255 * @since 1.2.0 1257 1256 * 1258 1257 * @global object $activities_template {@link BP_Activity_Template} … … 1267 1266 * Filters the activity object name. 1268 1267 * 1269 * @since BuddyPress (1.2.0)1268 * @since 1.2.0 1270 1269 * 1271 1270 * @param string $activity_component The activity object name. … … 1277 1276 * Output the activity type. 1278 1277 * 1279 * @since BuddyPress (1.2.0)1278 * @since 1.2.0 1280 1279 * 1281 1280 * @uses bp_get_activity_type() … … 1288 1287 * Return the activity type. 1289 1288 * 1290 * @since BuddyPress (1.2.0)1289 * @since 1.2.0 1291 1290 * 1292 1291 * @global object $activities_template {@link BP_Activity_Template} … … 1301 1300 * Filters the activity type. 1302 1301 * 1303 * @since BuddyPress (1.2.0)1302 * @since 1.2.0 1304 1303 * 1305 1304 * @param string $activity_type The activity type. … … 1313 1312 * Just a wrapper for bp_activity_type(). 1314 1313 * 1315 * @since BuddyPress (1.2.0)1316 * @deprecated BuddyPress (1.5.0)1314 * @since 1.2.0 1315 * @deprecated 1.5.0 1317 1316 * 1318 1317 * @todo Properly deprecate in favor of bp_activity_type() and … … 1328 1327 * Just a wrapper for bp_get_activity_type(). 1329 1328 * 1330 * @since BuddyPress (1.2.0)1331 * @deprecated BuddyPress (1.5.0)1329 * @since 1.2.0 1330 * @deprecated 1.5.0 1332 1331 * 1333 1332 * @todo Properly deprecate in favor of bp_get_activity_type(). … … 1342 1341 * Output the activity user ID. 1343 1342 * 1344 * @since BuddyPress (1.1.0)1343 * @since 1.1.0 1345 1344 * 1346 1345 * @uses bp_get_activity_user_id() … … 1353 1352 * Return the activity user ID. 1354 1353 * 1355 * @since BuddyPress (1.1.0)1354 * @since 1.1.0 1356 1355 * 1357 1356 * @global object $activities_template {@link BP_Activity_Template} … … 1366 1365 * Filters the activity user ID. 1367 1366 * 1368 * @since BuddyPress (1.1.0)1367 * @since 1.1.0 1369 1368 * 1370 1369 * @param int $user_id The activity user ID. … … 1376 1375 * Output the activity user link. 1377 1376 * 1378 * @since BuddyPress (1.2.0)1377 * @since 1.2.0 1379 1378 * 1380 1379 * @uses bp_get_activity_user_link() … … 1387 1386 * Return the activity user link. 1388 1387 * 1389 * @since BuddyPress (1.2.0)1388 * @since 1.2.0 1390 1389 * 1391 1390 * @global object $activities_template {@link BP_Activity_Template} … … 1407 1406 * Filters the activity user link. 1408 1407 * 1409 * @since BuddyPress (1.2.0)1408 * @since 1.2.0 1410 1409 * 1411 1410 * @param string $link The activity user link. … … 1417 1416 * Output the avatar of the user that performed the action. 1418 1417 * 1419 * @since BuddyPress (1.1.0)1418 * @since 1.1.0 1420 1419 * 1421 1420 * @see bp_get_activity_avatar() for description of arguments. … … 1430 1429 * Return the avatar of the user that performed the action. 1431 1430 * 1432 * @since BuddyPress (1.1.0)1431 * @since 1.1.0 1433 1432 * 1434 1433 * @see bp_core_fetch_avatar() For a description of the arguments. … … 1509 1508 * bp_get_activity_avatar_object_group, and bp_get_activity_avatar_object_user. 1510 1509 * 1511 * @since BuddyPress (1.1.0)1510 * @since 1.1.0 1512 1511 * 1513 1512 * @param string $component Component being displayed. … … 1519 1518 * Filters the activity avatar item ID. 1520 1519 * 1521 * @since BuddyPress (1.2.10)1520 * @since 1.2.10 1522 1521 * 1523 1522 * @param int $item_id Item ID for the activity avatar. … … 1533 1532 * Filters the value returned by bp_core_fetch_avatar. 1534 1533 * 1535 * @since BuddyPress (1.1.3)1534 * @since 1.1.3 1536 1535 * 1537 1536 * @param array $value Array of arguments calculated for use with bp_core_fetch_avatar. … … 1552 1551 * Output the avatar of the object that action was performed on. 1553 1552 * 1554 * @since BuddyPress (1.2.0)1553 * @since 1.2.0 1555 1554 * 1556 1555 * @see bp_get_activity_secondary_avatar() for description of arguments. … … 1566 1565 * Return the avatar of the object that action was performed on. 1567 1566 * 1568 * @since BuddyPress (1.2.0)1567 * @since 1.2.0 1569 1568 * 1570 1569 * @see bp_core_fetch_avatar() for description of arguments. … … 1676 1675 * and bp_get_activity_secondary_avatar_object_user. 1677 1676 * 1678 * @since BuddyPress (1.2.10)1677 * @since 1.2.10 1679 1678 * 1680 1679 * @param string $object Component being displayed. … … 1685 1684 * Filters the activity secondary avatar item ID. 1686 1685 * 1687 * @since BuddyPress (1.2.10)1686 * @since 1.2.10 1688 1687 * 1689 1688 * @param int $item_id ID for the secondary avatar item. … … 1713 1712 * Filters the secondary avatar link for current activity. 1714 1713 * 1715 * @since BuddyPress (1.7.0)1714 * @since 1.7.0 1716 1715 * 1717 1716 * @param string $link Link to wrap the avatar image in. … … 1723 1722 * Filters the determined avatar for the secondary activity item. 1724 1723 * 1725 * @since BuddyPress (1.2.10)1724 * @since 1.2.10 1726 1725 * 1727 1726 * @param string $avatar Formatted HTML <img> element, or raw avatar URL. … … 1743 1742 * Output the activity action. 1744 1743 * 1745 * @since BuddyPress (1.2.0)1744 * @since 1.2.0 1746 1745 * 1747 1746 * @param array $args See bp_get_activity_action() … … 1755 1754 * Return the activity action. 1756 1755 * 1757 * @since BuddyPress (1.2.0)1756 * @since 1.2.0 1758 1757 * 1759 1758 * @global object $activities_template {@link BP_Activity_Template} … … 1779 1778 * Filters the activity action before the action is inserted as meta. 1780 1779 * 1781 * @since BuddyPress (1.2.10)1780 * @since 1.2.10 1782 1781 * 1783 1782 * @param array $value Array containing the current action, the current activity, and the $args array passed into the function. … … 1797 1796 * Filters the activity action after the action has been inserted as meta. 1798 1797 * 1799 * @since BuddyPress (1.2.0)1798 * @since 1.2.0 1800 1799 * 1801 1800 * @param array $value Array containing the current action, the current activity, and the $args array passed into the function. … … 1811 1810 * Output the activity content body. 1812 1811 * 1813 * @since BuddyPress (1.2.0)1812 * @since 1.2.0 1814 1813 * 1815 1814 * @uses bp_get_activity_content_body() … … 1822 1821 * Return the activity content body. 1823 1822 * 1824 * @since BuddyPress (1.2.0)1823 * @since 1.2.0 1825 1824 * 1826 1825 * @global object $activities_template {@link BP_Activity_Template} … … 1841 1840 * Filters the activity content body. 1842 1841 * 1843 * @since BuddyPress (1.2.0)1842 * @since 1.2.0 1844 1843 * 1845 1844 * @param array $value Array containing the current activity content body and the current activity. … … 1851 1850 * Does the activity have content? 1852 1851 * 1853 * @since BuddyPress (1.2.0)1852 * @since 1.2.0 1854 1853 * 1855 1854 * @global object $activities_template {@link BP_Activity_Template} … … 1870 1869 * Output the activity content. 1871 1870 * 1872 * @since BuddyPress (1.0.0)1873 * @deprecated BuddyPress (1.5.0)1871 * @since 1.0.0 1872 * @deprecated 1.5.0 1874 1873 * 1875 1874 * @todo properly deprecate this function. … … 1884 1883 * Return the activity content. 1885 1884 * 1886 * @since BuddyPress (1.0.0)1887 * @deprecated BuddyPress (1.5.0)1885 * @since 1.0.0 1886 * @deprecated 1.5.0 1888 1887 * 1889 1888 * @todo properly deprecate this function. … … 1913 1912 * as a link to the item's permalink). 1914 1913 * 1915 * @since BuddyPress (1.2.0)1914 * @since 1.2.0 1916 1915 * 1917 1916 * @global object $activities_template {@link BP_Activity_Template} … … 1940 1939 * Filters the activity item time since markup. 1941 1940 * 1942 * @since BuddyPress (1.2.0)1941 * @since 1.2.0 1943 1942 * 1944 1943 * @param array $value Array containing the time since markup and the current activity component. … … 1964 1963 * Filters the activity permalink to be added to the activity content. 1965 1964 * 1966 * @since BuddyPress (1.2.0)1965 * @since 1.2.0 1967 1966 * 1968 1967 * @param array $value Array containing the html markup for the activity permalink, after being parsed by sprintf and current activity component. … … 1979 1978 * Filters the activity content after activity metadata has been attached. 1980 1979 * 1981 * @since BuddyPress (1.2.0)1980 * @since 1.2.0 1982 1981 * 1983 1982 * @param string $content Activity content with the activity metadata added. … … 1989 1988 * Determine if the current user can delete an activity item. 1990 1989 * 1991 * @since BuddyPress (1.2.0)1990 * @since 1.2.0 1992 1991 * 1993 1992 * @global object $activities_template {@link BP_Activity_Template} … … 2038 2037 * Filters whether the current user can delete an activity item. 2039 2038 * 2040 * @since BuddyPress (1.5.0)2039 * @since 1.5.0 2041 2040 * 2042 2041 * @param bool $can_delete Whether the user can delete the item. … … 2049 2048 * Output the activity parent content. 2050 2049 * 2051 * @since BuddyPress (1.2.0)2050 * @since 1.2.0 2052 2051 * 2053 2052 * @see bp_get_activity_parent_content() for a description of arguments. … … 2063 2062 * Return the activity content. 2064 2063 * 2065 * @since BuddyPress (1.2.0)2064 * @since 1.2.0 2066 2065 * 2067 2066 * @global object $activities_template {@link BP_Activity_Template} … … 2110 2109 * Filters the activity parent content. 2111 2110 * 2112 * @since BuddyPress (1.2.0)2111 * @since 1.2.0 2113 2112 * 2114 2113 * @param string $content Content set to be displayed as parent content. … … 2120 2119 * Output the parent activity's user ID. 2121 2120 * 2122 * @since BuddyPress (1.7.0)2121 * @since 1.7.0 2123 2122 */ 2124 2123 function bp_activity_parent_user_id() { … … 2129 2128 * Return the parent activity's user ID. 2130 2129 * 2131 * @since BuddyPress (1.7.0)2130 * @since 1.7.0 2132 2131 * 2133 2132 * @global BP_Activity_Template $activities_template … … 2162 2161 * Filters the activity parent item's user ID. 2163 2162 * 2164 * @since BuddyPress (1.7.0)2163 * @since 1.7.0 2165 2164 * 2166 2165 * @param int $retval ID for the activity parent's user. … … 2172 2171 * Output whether or not the current activity is in a current user's favorites. 2173 2172 * 2174 * @since BuddyPress (1.2.0)2173 * @since 1.2.0 2175 2174 * 2176 2175 * @uses bp_get_activity_is_favorite() … … 2183 2182 * Return whether the current activity is in a current user's favorites. 2184 2183 * 2185 * @since BuddyPress (1.2.0)2184 * @since 1.2.0 2186 2185 * 2187 2186 * @global object $activities_template {@link BP_Activity_Template} … … 2196 2195 * Filters whether the current activity item is in the current user's favorites. 2197 2196 * 2198 * @since BuddyPress (1.2.0)2197 * @since 1.2.0 2199 2198 * 2200 2199 * @param bool $value Whether or not the current activity item is in the current user's favorites. … … 2206 2205 * Output the comment markup for an activity item. 2207 2206 * 2208 * @since BuddyPress (1.2.0)2207 * @since 1.2.0 2209 2208 * 2210 2209 * @todo deprecate $args param … … 2219 2218 * Get the comment markup for an activity item. 2220 2219 * 2221 * @since BuddyPress (1.2.0)2220 * @since 1.2.0 2222 2221 * 2223 2222 * @todo deprecate $args param … … 2249 2248 * split between here and the comment.php template. 2250 2249 * 2251 * @since BuddyPress (1.2.0)2250 * @since 1.2.0 2252 2251 * 2253 2252 * @param object $comment The activity object currently being recursed. … … 2272 2271 * Filters the opening tag for the template that lists activity comments. 2273 2272 * 2274 * @since BuddyPress (1.6.0)2273 * @since 1.6.0 2275 2274 * 2276 2275 * @param string $value Opening tag for the HTML markup to use. … … 2300 2299 * Filters the closing tag for the template that list activity comments. 2301 2300 * 2302 * @since BuddyPress (1.6.0)2301 * @since 1.6.0 2303 2302 * 2304 2303 * @param string $value Closing tag for the HTML markup to use. … … 2310 2309 * Utility function that returns the comment currently being recursed. 2311 2310 * 2312 * @since BuddyPress (1.5.0)2311 * @since 1.5.0 2313 2312 * 2314 2313 * @global object $activities_template {@link BP_Activity_Template} … … 2328 2327 * Filters the current comment being recursed. 2329 2328 * 2330 * @since BuddyPress (1.5.0)2329 * @since 1.5.0 2331 2330 * 2332 2331 * @param object|bool $current_comment The activity comment currently being displayed. False on failure. … … 2339 2338 * Output the ID of the activity comment currently being displayed. 2340 2339 * 2341 * @since BuddyPress (1.5.0)2340 * @since 1.5.0 2342 2341 * 2343 2342 * @uses bp_get_activity_comment_id() … … 2350 2349 * Return the ID of the activity comment currently being displayed. 2351 2350 * 2352 * @since BuddyPress (1.5.0)2351 * @since 1.5.0 2353 2352 * 2354 2353 * @global object $activities_template {@link BP_Activity_Template} … … 2366 2365 * Filters the ID of the activity comment currently being displayed. 2367 2366 * 2368 * @since BuddyPress (1.5.0)2367 * @since 1.5.0 2369 2368 * 2370 2369 * @param int|bool $comment_id ID for the comment currently being displayed. … … 2376 2375 * Output the ID of the author of the activity comment currently being displayed. 2377 2376 * 2378 * @since BuddyPress (1.5.0)2377 * @since 1.5.0 2379 2378 * 2380 2379 * @uses bp_get_activity_comment_user_id() … … 2387 2386 * Return the ID of the author of the activity comment currently being displayed. 2388 2387 * 2389 * @since BuddyPress (1.5.0)2388 * @since 1.5.0 2390 2389 * 2391 2390 * @global object $activities_template {@link BP_Activity_Template} … … 2403 2402 * Filters the ID of the author of the activity comment currently being displayed. 2404 2403 * 2405 * @since BuddyPress (1.5.0)2404 * @since 1.5.0 2406 2405 * 2407 2406 * @param int|bool $user_id ID for the author of the comment currently being displayed. … … 2413 2412 * Output the author link for the activity comment currently being displayed. 2414 2413 * 2415 * @since BuddyPress (1.5.0)2414 * @since 1.5.0 2416 2415 * 2417 2416 * @uses bp_get_activity_comment_user_link() … … 2424 2423 * Return the author link for the activity comment currently being displayed. 2425 2424 * 2426 * @since BuddyPress (1.5.0)2425 * @since 1.5.0 2427 2426 * 2428 2427 * @uses bp_core_get_user_domain() … … 2438 2437 * Filters the author link for the activity comment currently being displayed. 2439 2438 * 2440 * @since BuddyPress (1.5.0)2439 * @since 1.5.0 2441 2440 * 2442 2441 * @param string $user_link Link for the author of the activity comment currently being displayed. … … 2448 2447 * Output the author name for the activity comment currently being displayed. 2449 2448 * 2450 * @since BuddyPress (1.5.0)2449 * @since 1.5.0 2451 2450 * 2452 2451 * @uses bp_get_activity_comment_name() … … 2462 2461 * 'bp_activity_comment_name'. 2463 2462 * 2464 * @since BuddyPress (1.5.0)2463 * @since 1.5.0 2465 2464 * 2466 2465 * @global object $activities_template {@link BP_Activity_Template} … … 2483 2482 * Filters the name of the author for the activity comment. 2484 2483 * 2485 * @since BuddyPress (1.5.0)2484 * @since 1.5.0 2486 2485 * 2487 2486 * @param string $name Name to be displayed with the activity comment. … … 2493 2492 * Output the formatted date_recorded of the activity comment currently being displayed. 2494 2493 * 2495 * @since BuddyPress (1.5.0)2494 * @since 1.5.0 2496 2495 * 2497 2496 * @uses bp_get_activity_comment_date_recorded() … … 2504 2503 * Return the formatted date_recorded for the activity comment currently being displayed. 2505 2504 * 2506 * @since BuddyPress (1.5.0)2505 * @since 1.5.0 2507 2506 * 2508 2507 * @uses bp_core_time_since() … … 2517 2516 * Filters the recorded date of the activity comment currently being displayed. 2518 2517 * 2519 * @since BuddyPress (1.5.0)2518 * @since 1.5.0 2520 2519 * 2521 2520 * @param string|bool Date for the activity comment currently being displayed. … … 2527 2526 * Output the date_recorded of the activity comment currently being displayed. 2528 2527 * 2529 * @since BuddyPress (2.3.0)2528 * @since 2.3.0 2530 2529 * 2531 2530 * @uses bp_get_activity_comment_date_recorded() … … 2538 2537 * Return the date_recorded for the activity comment currently being displayed. 2539 2538 * 2540 * @since BuddyPress (2.3.0)2539 * @since 2.3.0 2541 2540 * 2542 2541 * @global object $activities_template {@link BP_Activity_Template} … … 2553 2552 * Filters the raw recorded date of the activity comment currently being displayed. 2554 2553 * 2555 * @since BuddyPress (2.3.0)2554 * @since 2.3.0 2556 2555 * 2557 2556 * @param string|bool Raw date for the activity comment currently being displayed. … … 2563 2562 * Output the 'delete' URL for the activity comment currently being displayed. 2564 2563 * 2565 * @since BuddyPress (1.5.0)2564 * @since 1.5.0 2566 2565 * 2567 2566 * @uses bp_get_activity_comment_delete_link() … … 2574 2573 * Gets the 'delete' URL for the activity comment currently being displayed. 2575 2574 * 2576 * @since BuddyPress (1.5.0)2575 * @since 1.5.0 2577 2576 * 2578 2577 * @uses wp_nonce_url() … … 2591 2590 * Filters the link used for deleting the activity comment currently being displayed. 2592 2591 * 2593 * @since BuddyPress (1.5.0)2592 * @since 1.5.0 2594 2593 * 2595 2594 * @param string $link Link to use for deleting the currently displayed activity comment. … … 2601 2600 * Output the content of the activity comment currently being displayed. 2602 2601 * 2603 * @since BuddyPress (1.5.0)2602 * @since 1.5.0 2604 2603 * 2605 2604 * @uses bp_get_activity_comment_content() … … 2617 2616 * comments only. 2618 2617 * 2619 * @since BuddyPress (1.5.0)2618 * @since 1.5.0 2620 2619 * 2621 2620 * @global object $activities_template {@link BP_Activity_Template} … … 2634 2633 * Filters the content of the current activity comment. 2635 2634 * 2636 * @since BuddyPress (1.2.0)2635 * @since 1.2.0 2637 2636 * 2638 2637 * @param string $content The content of the current activity comment. … … 2644 2643 * Output the activity comment count. 2645 2644 * 2646 * @since BuddyPress (1.2.0)2645 * @since 1.2.0 2647 2646 * 2648 2647 * @uses bp_activity_get_comment_count() … … 2655 2654 * Return the comment count of an activity item. 2656 2655 * 2657 * @since BuddyPress (1.2.0)2656 * @since 1.2.0 2658 2657 * 2659 2658 * @global object $activities_template {@link BP_Activity_Template} … … 2681 2680 * Filters the activity comment count. 2682 2681 * 2683 * @since BuddyPress (1.2.0)2682 * @since 1.2.0 2684 2683 * 2685 2684 * @param int $count The activity comment count. … … 2694 2693 * activity child has, and returns them. 2695 2694 * 2696 * @since BuddyPress (1.2.0)2695 * @since 1.2.0 2697 2696 * 2698 2697 * @uses bp_activity_recurse_comment_count() … … 2720 2719 * Filters the total number of comments for the current comment. 2721 2720 * 2722 * @since BuddyPress (2.1.0)2721 * @since 2.1.0 2723 2722 * 2724 2723 * @param int $new_count New total count for the current comment. … … 2732 2731 * Output the depth of the current activity comment. 2733 2732 * 2734 * @since BuddyPress (2.0.0)2733 * @since 2.0.0 2735 2734 */ 2736 2735 function bp_activity_comment_depth() { … … 2740 2739 * Return the current activity comment depth. 2741 2740 * 2742 * @since BuddyPress (2.0.0)2741 * @since 2.0.0 2743 2742 * 2744 2743 * @return int $depth Depth for the current activity comment. … … 2750 2749 * Filters the comment depth of the current activity comment. 2751 2750 * 2752 * @since BuddyPress (2.0.0)2751 * @since 2.0.0 2753 2752 * 2754 2753 * @param int $depth Depth for the current activity comment. … … 2760 2759 * Output the activity comment link. 2761 2760 * 2762 * @since BuddyPress (1.2.0)2761 * @since 1.2.0 2763 2762 * 2764 2763 * @uses bp_get_activity_comment_link() … … 2771 2770 * Return the activity comment link. 2772 2771 * 2773 * @since BuddyPress (1.2.0)2772 * @since 1.2.0 2774 2773 * 2775 2774 * @global object $activities_template {@link BP_Activity_Template} … … 2784 2783 * Filters the comment link for the current activity comment. 2785 2784 * 2786 * @since BuddyPress (1.2.0)2785 * @since 1.2.0 2787 2786 * 2788 2787 * @param string $value Constructed URL parameters with activity IDs. … … 2794 2793 * Output the activity comment form no JavaScript display CSS. 2795 2794 * 2796 * @since BuddyPress (1.2.0)2795 * @since 1.2.0 2797 2796 * 2798 2797 * @uses bp_get_activity_comment_form_nojs_display() … … 2805 2804 * Return the activity comment form no JavaScript display CSS. 2806 2805 * 2807 * @since BuddyPress (1.2.0)2806 * @since 1.2.0 2808 2807 * 2809 2808 * @global object $activities_template {@link BP_Activity_Template} … … 2825 2824 * Output the activity comment form action. 2826 2825 * 2827 * @since BuddyPress (1.2.0)2826 * @since 1.2.0 2828 2827 * 2829 2828 * @uses bp_get_activity_comment_form_action() … … 2836 2835 * Return the activity comment form action. 2837 2836 * 2838 * @since BuddyPress (1.2.0)2837 * @since 1.2.0 2839 2838 * 2840 2839 * @uses home_url() … … 2849 2848 * Filters the activity comment form action URL. 2850 2849 * 2851 * @since BuddyPress (1.2.0)2850 * @since 1.2.0 2852 2851 * 2853 2852 * @param string $value URL to use in the comment form's action attribute. … … 2859 2858 * Output the activity permalink ID. 2860 2859 * 2861 * @since BuddyPress (1.2.0)2860 * @since 1.2.0 2862 2861 * 2863 2862 * @uses bp_get_activity_permalink_id() … … 2870 2869 * Return the activity permalink ID. 2871 2870 * 2872 * @since BuddyPress (1.2.0)2871 * @since 1.2.0 2873 2872 * 2874 2873 * @uses apply_filters() To call the 'bp_get_activity_permalink_id' hook. … … 2881 2880 * Filters the activity action permalink ID. 2882 2881 * 2883 * @since BuddyPress (1.2.0)2882 * @since 1.2.0 2884 2883 * 2885 2884 * @param string $value Current action for the activity item. … … 2891 2890 * Output the activity thread permalink. 2892 2891 * 2893 * @since BuddyPress (1.2.0)2892 * @since 1.2.0 2894 2893 * 2895 2894 * @uses bp_get_activity_permalink_id() … … 2902 2901 * Return the activity thread permalink. 2903 2902 * 2904 * @since BuddyPress (1.2.0)2903 * @since 1.2.0 2905 2904 * 2906 2905 * @uses bp_activity_get_permalink() … … 2917 2916 * Filters the activity thread permalink. 2918 2917 * 2919 * @since BuddyPress (1.2.0)2918 * @since 1.2.0 2920 2919 * 2921 2920 * @param string $link The activity thread permalink. … … 2927 2926 * Output the activity comment permalink. 2928 2927 * 2929 * @since BuddyPress (1.8.0)2928 * @since 1.8.0 2930 2929 * 2931 2930 * @uses bp_get_activity_permalink_id() … … 2937 2936 * Return the activity comment permalink. 2938 2937 * 2939 * @since BuddyPress (1.8.0)2938 * @since 1.8.0 2940 2939 * 2941 2940 * @uses bp_activity_get_permalink() … … 2963 2962 * Filters the activity comment permalink. 2964 2963 * 2965 * @since BuddyPress (1.8.0)2964 * @since 1.8.0 2966 2965 * 2967 2966 * @param string $link Activity comment permalink. … … 2974 2973 * Output the activity favorite link. 2975 2974 * 2976 * @since BuddyPress (1.2.0)2975 * @since 1.2.0 2977 2976 * 2978 2977 * @uses bp_get_activity_favorite_link() … … 2985 2984 * Return the activity favorite link. 2986 2985 * 2987 * @since BuddyPress (1.2.0)2986 * @since 1.2.0 2988 2987 * 2989 2988 * @global object $activities_template {@link BP_Activity_Template} … … 3001 3000 * Filters the activity favorite link. 3002 3001 * 3003 * @since BuddyPress (1.2.0)3002 * @since 1.2.0 3004 3003 * 3005 3004 * @param string $value Constructed link for favoriting the activity comment. … … 3011 3010 * Output the activity unfavorite link. 3012 3011 * 3013 * @since BuddyPress (1.2.0)3012 * @since 1.2.0 3014 3013 * 3015 3014 * @uses bp_get_activity_unfavorite_link() … … 3022 3021 * Return the activity unfavorite link. 3023 3022 * 3024 * @since BuddyPress (1.2.0)3023 * @since 1.2.0 3025 3024 * 3026 3025 * @global object $activities_template {@link BP_Activity_Template} … … 3038 3037 * Filters the activity unfavorite link. 3039 3038 * 3040 * @since BuddyPress (1.2.0)3039 * @since 1.2.0 3041 3040 * 3042 3041 * @param string $value Constructed link for unfavoriting the activity comment. … … 3048 3047 * Output the activity CSS class. 3049 3048 * 3050 * @since BuddyPress (1.0.0)3049 * @since 1.0.0 3051 3050 * 3052 3051 * @uses bp_get_activity_css_class() … … 3059 3058 * Return the current activity item's CSS class. 3060 3059 * 3061 * @since BuddyPress (1.0.0)3060 * @since 1.0.0 3062 3061 * 3063 3062 * @global object $activities_template {@link BP_Activity_Template} … … 3075 3074 * Filters the available mini activity actions available as CSS classes. 3076 3075 * 3077 * @since BuddyPress (1.2.0)3076 * @since 1.2.0 3078 3077 * 3079 3078 * @param array $value Array of classes used to determine classes applied to HTML element. … … 3101 3100 * Filters the determined classes to add to the HTML element. 3102 3101 * 3103 * @since BuddyPress (1.0.0)3102 * @since 1.0.0 3104 3103 * 3105 3104 * @param string $value Classes to be added to the HTML element. … … 3111 3110 * Output the activity delete link. 3112 3111 * 3113 * @since BuddyPress (1.1.0)3112 * @since 1.1.0 3114 3113 * 3115 3114 * @uses bp_get_activity_delete_link() … … 3122 3121 * Return the activity delete link. 3123 3122 * 3124 * @since BuddyPress (1.1.0)3123 * @since 1.1.0 3125 3124 * 3126 3125 * @global object $activities_template {@link BP_Activity_Template} … … 3151 3150 * Filters the activity delete link. 3152 3151 * 3153 * @since BuddyPress (1.1.0)3152 * @since 1.1.0 3154 3153 * 3155 3154 * @param string $link Activity delete HTML link. … … 3161 3160 * Output the URL to delete a single activity stream item. 3162 3161 * 3163 * @since BuddyPress (2.1.0)3162 * @since 2.1.0 3164 3163 * 3165 3164 * @uses bp_get_activity_delete_link() … … 3171 3170 * Return the URL to delete a single activity item. 3172 3171 * 3173 * @since BuddyPress (2.1.0)3172 * @since 2.1.0 3174 3173 * 3175 3174 * @global object $activities_template {@link BP_Activity_Template} … … 3201 3200 * Filters the activity delete URL. 3202 3201 * 3203 * @since BuddyPress (2.1.0)3202 * @since 2.1.0 3204 3203 * 3205 3204 * @param string $url Activity delete URL. … … 3211 3210 * Output the activity latest update link. 3212 3211 * 3213 * @since BuddyPress (1.2.0)3212 * @since 1.2.0 3214 3213 * 3215 3214 * @see bp_get_activity_latest_update() for description of parameters. … … 3225 3224 * Return the activity latest update link. 3226 3225 * 3227 * @since BuddyPress (1.2.0)3226 * @since 1.2.0 3228 3227 * 3229 3228 * @uses bp_is_user_inactive() … … 3258 3257 * Filters the latest update excerpt. 3259 3258 * 3260 * @since BuddyPress (1.2.10)3259 * @since 1.2.10 3261 3260 * 3262 3261 * @param string $value The excerpt for the latest update. … … 3274 3273 * Filters the latest update excerpt with view link appended to the end. 3275 3274 * 3276 * @since BuddyPress (1.2.0)3275 * @since 1.2.0 3277 3276 * 3278 3277 * @param string $latest_update The latest update with "view" link appended to it. … … 3284 3283 * Output the activity filter links. 3285 3284 * 3286 * @since BuddyPress (1.1.0)3285 * @since 1.1.0 3287 3286 * 3288 3287 * @see bp_get_activity_filter_links() for description of parameters. … … 3298 3297 * Return the activity filter links. 3299 3298 * 3300 * @since BuddyPress (1.1.0)3299 * @since 1.1.0 3301 3300 * 3302 3301 * @uses wp_parse_args() … … 3370 3369 * Filters the activity filter link URL for the current activity component. 3371 3370 * 3372 * @since BuddyPress (1.1.0)3371 * @since 1.1.0 3373 3372 * 3374 3373 * @param string $link The URL for the current component. … … 3389 3388 * Filters all of the constructed filter links. 3390 3389 * 3391 * @since BuddyPress (1.1.0)3390 * @since 1.1.0 3392 3391 * 3393 3392 * @param string $value All of the links to be displayed to the user. … … 3399 3398 * Determine if a comment can be made on an activity item. 3400 3399 * 3401 * @since BuddyPress (1.2.0)3400 * @since 1.2.0 3402 3401 * 3403 3402 * @global object $activities_template {@link BP_Activity_Template} … … 3447 3446 * Filters whether a comment can be made on an activity item. 3448 3447 * 3449 * @since BuddyPress (1.5.0)3448 * @since 1.5.0 3450 3449 * 3451 3450 * @param bool $can_comment Status on if activity can be commented on. … … 3458 3457 * Determine whether a comment can be made on an activity reply item. 3459 3458 * 3460 * @since BuddyPress (1.5.0)3459 * @since 1.5.0 3461 3460 * 3462 3461 * @param bool|object $comment Activity comment. … … 3494 3493 * Filters whether a comment can be made on an activity reply item. 3495 3494 * 3496 * @since BuddyPress (1.5.0)3495 * @since 1.5.0 3497 3496 * 3498 3497 * @param bool $can_comment Status on if activity reply can be commented on. … … 3507 3506 * Defaults to true, but can be modified by plugins. 3508 3507 * 3509 * @since BuddyPress (1.5.0)3508 * @since 1.5.0 3510 3509 * 3511 3510 * @uses apply_filters() To call the 'bp_activity_can_favorite' hook. … … 3518 3517 * Filters whether or not users can favorite activity items. 3519 3518 * 3520 * @since BuddyPress (1.5.0)3519 * @since 1.5.0 3521 3520 * 3522 3521 * @param bool $value Whether or not favoriting is enabled. … … 3528 3527 * Output the total favorite count for a specified user. 3529 3528 * 3530 * @since BuddyPress (1.2.0)3529 * @since 1.2.0 3531 3530 * 3532 3531 * @see bp_get_total_favorite_count_for_user() for description of parameters. … … 3542 3541 * Return the total favorite count for a specified user. 3543 3542 * 3544 * @since BuddyPress (1.2.0)3543 * @since 1.2.0 3545 3544 * 3546 3545 * @uses bp_activity_total_favorites_for_user() … … 3569 3568 * Filters the total favorite count for a user. 3570 3569 * 3571 * @since BuddyPress (1.2.0)3570 * @since 1.2.0 3572 3571 * 3573 3572 * @param int|bool $retval Total favorite count for a user. False on no favorites. … … 3580 3579 * Output the total mention count for a specified user. 3581 3580 * 3582 * @since BuddyPress (1.2.0)3581 * @since 1.2.0 3583 3582 * 3584 3583 * @see bp_get_total_mention_count_for_user() for description of parameters. … … 3594 3593 * Return the total mention count for a specified user. 3595 3594 * 3596 * @since BuddyPress (1.2.0)3595 * @since 1.2.0 3597 3596 * 3598 3597 * @uses bp_get_user_meta() … … 3618 3617 * Filters the total mention count for a user. 3619 3618 * 3620 * @since BuddyPress (1.2.0)3619 * @since 1.2.0 3621 3620 * 3622 3621 * @param int|bool $retval Total mention count for a user. False on no mentions. … … 3628 3627 * Output the public message link for displayed user. 3629 3628 * 3630 * @since BuddyPress (1.2.0)3629 * @since 1.2.0 3631 3630 * 3632 3631 * @uses bp_get_send_public_message_link() … … 3639 3638 * Return the public message link for the displayed user. 3640 3639 * 3641 * @since BuddyPress (1.2.0)3640 * @since 1.2.0 3642 3641 * 3643 3642 * @uses is_user_logged_in() … … 3664 3663 * Filters the public message link for the displayed user. 3665 3664 * 3666 * @since BuddyPress (1.2.0)3665 * @since 1.2.0 3667 3666 * 3668 3667 * @param string $retval The URL for the public message link. … … 3674 3673 * Recurse through all activity comments and return the activity comment IDs. 3675 3674 * 3676 * @since BuddyPress (2.0.0)3675 * @since 2.0.0 3677 3676 * 3678 3677 * @param array $activity Array of activities generated from {@link bp_activity_get()}. … … 3702 3701 * Output the mentioned user display name. 3703 3702 * 3704 * @since BuddyPress (1.2.0)3703 * @since 1.2.0 3705 3704 * 3706 3705 * @see bp_get_mentioned_user_display_name() for description of parameters. … … 3716 3715 * Returns the mentioned user display name. 3717 3716 * 3718 * @since BuddyPress (1.2.0)3717 * @since 1.2.0 3719 3718 * 3720 3719 * @uses bp_core_get_user_displayname() … … 3738 3737 * Filters the mentioned user display name. 3739 3738 * 3740 * @since BuddyPress (1.2.0)3739 * @since 1.2.0 3741 3740 * 3742 3741 * @param string $name Display name for the mentioned user. … … 3749 3748 * Output button for sending a public message (an @-mention). 3750 3749 * 3751 * @since BuddyPress (1.2.0)3750 * @since 1.2.0 3752 3751 * 3753 3752 * @see bp_get_send_public_message_button() for description of parameters. … … 3763 3762 * Return button for sending a public message (an @-mention). 3764 3763 * 3765 * @since BuddyPress (1.2.0)3764 * @since 1.2.0 3766 3765 * 3767 3766 * @uses bp_get_send_public_message_link() … … 3804 3803 * Filters the public message button HTML. 3805 3804 * 3806 * @since BuddyPress (1.2.10)3805 * @since 1.2.10 3807 3806 * 3808 3807 * @param array $r Array of arguments for the public message button HTML. … … 3814 3813 * Output the activity post form action. 3815 3814 * 3816 * @since BuddyPress (1.2.0)3815 * @since 1.2.0 3817 3816 * 3818 3817 * @uses bp_get_activity_post_form_action() … … 3825 3824 * Return the activity post form action. 3826 3825 * 3827 * @since BuddyPress (1.2.0)3826 * @since 1.2.0 3828 3827 * 3829 3828 * @uses home_url() … … 3838 3837 * Filters the action url used for the activity post form. 3839 3838 * 3840 * @since BuddyPress (1.2.0)3839 * @since 1.2.0 3841 3840 * 3842 3841 * @param string $value URL to be used for the activity post form. … … 3853 3852 * <ul> or <ol> wrapper markup. 3854 3853 * 3855 * @since BuddyPress (1.7.0)3854 * @since 1.7.0 3856 3855 * 3857 3856 * @see bp_core_fetch_avatar() for a description of arguments. … … 3908 3907 * Filters the list of linked avatars for users who have commented on the current activity item. 3909 3908 * 3910 * @since BuddyPress (1.7.0)3909 * @since 1.7.0 3911 3910 * 3912 3911 * @param string $retval HTML markup for the list of avatars. … … 3920 3919 * Return the IDs of every user who's left a comment on the current activity item. 3921 3920 * 3922 * @since BuddyPress (1.7.0)3921 * @since 1.7.0 3923 3922 * 3924 3923 * @return bool|array An array of IDs, or false if none are found. … … 3934 3933 * Filters the list of user IDs for the current activity item. 3935 3934 * 3936 * @since BuddyPress (1.7.0)3935 * @since 1.7.0 3937 3936 * 3938 3937 * @param array $value Array of unique user IDs for the current activity item. … … 3944 3943 * Recurse through all activity comments and collect the IDs of the users who wrote them. 3945 3944 * 3946 * @since BuddyPress (1.7.0)3945 * @since 1.7.0 3947 3946 * 3948 3947 * @param array $comments Array of {@link BP_Activity_Activity} items. … … 3978 3977 * Filters the list of user IDs for the current activity comment item. 3979 3978 * 3980 * @since BuddyPress (2.1.0)3979 * @since 2.1.0 3981 3980 * 3982 3981 * @param array $user_ids Array of user IDs for the current activity comment item. … … 3989 3988 * Output the mentionname for the displayed user. 3990 3989 * 3991 * @since BuddyPress (1.9.0)3990 * @since 1.9.0 3992 3991 */ 3993 3992 function bp_displayed_user_mentionname() { … … 3997 3996 * Get the mentionname for the displayed user. 3998 3997 * 3999 * @since BuddyPress (1.9.0)3998 * @since 1.9.0 4000 3999 * 4001 4000 * @return string Mentionname for the displayed user, if available. … … 4006 4005 * Filters the mentionname for the displayed user. 4007 4006 * 4008 * @since BuddyPress (1.9.0)4007 * @since 1.9.0 4009 4008 * 4010 4009 * @param string $value The mentionanme for the displayed user. … … 4016 4015 * Echo a list of all registered activity types for use in dropdowns or checkbox lists. 4017 4016 * 4018 * @since BuddyPress (1.7.0)4017 * @since 1.7.0 4019 4018 * 4020 4019 * @param string $output Optional. Either 'select' or 'checkbox'. Default: 'select'. … … 4060 4059 * Two default hooks are bp_activity_types_list_select and bp_activity_types_list_checkbox. 4061 4060 * 4062 * @since BuddyPress (1.7.0)4061 * @since 1.7.0 4063 4062 * 4064 4063 * @param array $args Array of arguments passed into function. … … 4081 4080 * Output the sitewide activity feed link. 4082 4081 * 4083 * @since BuddyPress (1.0.0)4082 * @since 1.0.0 4084 4083 * 4085 4084 * @uses bp_get_sitewide_activity_feed_link() … … 4092 4091 * Returns the sitewide activity feed link. 4093 4092 * 4094 * @since BuddyPress (1.0.0)4093 * @since 1.0.0 4095 4094 * 4096 4095 * @uses home_url() … … 4105 4104 * Filters the sidewide activity feed link. 4106 4105 * 4107 * @since BuddyPress (1.0.0)4106 * @since 1.0.0 4108 4107 * 4109 4108 * @param string $value The feed link for sitewide activity. … … 4115 4114 * Output the member activity feed link. 4116 4115 * 4117 * @since BuddyPress (1.2.0)4116 * @since 1.2.0 4118 4117 * 4119 4118 * @uses bp_get_member_activity_feed_link() … … 4126 4125 * Output the member activity feed link. 4127 4126 * 4128 * @since BuddyPress (1.0.0)4129 * @deprecated BuddyPress (1.2.0)4127 * @since 1.0.0 4128 * @deprecated 1.2.0 4130 4129 * 4131 4130 * @todo properly deprecate in favor of bp_member_activity_feed_link(). … … 4138 4137 * Return the member activity feed link. 4139 4138 * 4140 * @since BuddyPress (1.2.0)4139 * @since 1.2.0 4141 4140 * 4142 4141 * @uses bp_is_profile_component() … … 4181 4180 * Filters the member activity feed link. 4182 4181 * 4183 * @since BuddyPress (1.0.0)4182 * @since 1.0.0 4184 4183 * 4185 4184 * @param string $link URL for the member activity feed. … … 4191 4190 * Return the member activity feed link. 4192 4191 * 4193 * @since BuddyPress (1.0.0)4194 * @deprecated BuddyPress (1.2.0)4192 * @since 1.0.0 4193 * @deprecated 1.2.0 4195 4194 * 4196 4195 * @todo properly deprecate in favor of bp_get_member_activity_feed_link(). … … 4208 4207 * Outputs the activity feed item guid. 4209 4208 * 4210 * @since BuddyPress (1.0.0)4209 * @since 1.0.0 4211 4210 * 4212 4211 * @uses bp_activity_feed_item_guid() … … 4219 4218 * Returns the activity feed item guid. 4220 4219 * 4221 * @since BuddyPress (1.2.0)4220 * @since 1.2.0 4222 4221 * 4223 4222 * @global object $activities_template {@link BP_Activity_Template} … … 4232 4231 * Filters the activity feed item guid. 4233 4232 * 4234 * @since BuddyPress (1.1.3)4233 * @since 1.1.3 4235 4234 * 4236 4235 * @param string $value Calculated md5 value for the activity feed item. … … 4242 4241 * Output the activity feed item title. 4243 4242 * 4244 * @since BuddyPress (1.0.0)4243 * @since 1.0.0 4245 4244 * 4246 4245 * @uses bp_get_activity_feed_item_title() … … 4253 4252 * Return the activity feed item title. 4254 4253 * 4255 * @since BuddyPress (1.0.0)4254 * @since 1.0.0 4256 4255 * 4257 4256 * @global object $activities_template {@link BP_Activity_Template} … … 4286 4285 * Filters the activity feed item title. 4287 4286 * 4288 * @since BuddyPress (1.0.0)4287 * @since 1.0.0 4289 4288 * 4290 4289 * @param string $title The title for the activity feed item. … … 4296 4295 * Output the activity feed item link. 4297 4296 * 4298 * @since BuddyPress (1.0.0)4297 * @since 1.0.0 4299 4298 * 4300 4299 * @uses bp_get_activity_feed_item_link() … … 4307 4306 * Return the activity feed item link. 4308 4307 * 4309 * @since BuddyPress (1.0.0)4308 * @since 1.0.0 4310 4309 * 4311 4310 * @global object $activities_template {@link BP_Activity_Template} … … 4324 4323 * Filters the activity feed item link. 4325 4324 * 4326 * @since BuddyPress (1.0.0)4325 * @since 1.0.0 4327 4326 * 4328 4327 * @param string $retval The URL for the activity feed item. … … 4334 4333 * Output the activity feed item date. 4335 4334 * 4336 * @since BuddyPress (1.0.0)4335 * @since 1.0.0 4337 4336 * 4338 4337 * @uses bp_get_activity_feed_item_date() … … 4345 4344 * Return the activity feed item date. 4346 4345 * 4347 * @since BuddyPress (1.0.0)4346 * @since 1.0.0 4348 4347 * 4349 4348 * @global object $activities_template {@link BP_Activity_Template} … … 4362 4361 * Filters the activity feed item date. 4363 4362 * 4364 * @since BuddyPress (1.0.0)4363 * @since 1.0.0 4365 4364 * 4366 4365 * @param string $retval The date for the activity feed item. … … 4372 4371 * Output the activity feed item description. 4373 4372 * 4374 * @since BuddyPress (1.0.0)4373 * @since 1.0.0 4375 4374 * 4376 4375 * @uses bp_get_activity_feed_item_description() … … 4383 4382 * Return the activity feed item description. 4384 4383 * 4385 * @since BuddyPress (1.0.0)4384 * @since 1.0.0 4386 4385 * 4387 4386 * @global object $activities_template {@link BP_Activity_Template} … … 4408 4407 * Filters the activity feed item description. 4409 4408 * 4410 * @since BuddyPress (1.0.0)4409 * @since 1.0.0 4411 4410 * 4412 4411 * @param string $content The description for the activity feed item. … … 4418 4417 * Template tag so we can hook activity feed to <head>. 4419 4418 * 4420 * @since BuddyPress (1.5.0)4419 * @since 1.5.0 4421 4420 * 4422 4421 * @uses bloginfo() … … 4435 4434 * Display available filters depending on the scope. 4436 4435 * 4437 * @since BuddyPress (2.1.0)4436 * @since 2.1.0 4438 4437 * 4439 4438 * @param string $context The current context. 'activity', 'member', … … 4447 4446 * Get available filters depending on the scope. 4448 4447 * 4449 * @since BuddyPress (2.1.0)4448 * @since 2.1.0 4450 4449 * 4451 4450 * @param string $context The current context. 'activity', 'member', … … 4499 4498 * Filters the options available in the activity filter dropdown. 4500 4499 * 4501 * @since BuddyPress (2.2.0)4500 * @since 2.2.0 4502 4501 * 4503 4502 * @param array $filters Array of filter options for the given context, in the following format: $option_value => $option_name. … … 4518 4517 * Filters the HTML markup result for the activity filter dropdown. 4519 4518 * 4520 * @since BuddyPress (2.1.0)4519 * @since 2.1.0 4521 4520 * 4522 4521 * @param string $output HTML output for the activity filter dropdown. -
trunk/src/bp-activity/classes/class-bp-activity-activity.php
r9961 r10077 16 16 * static methods for querying activities. 17 17 * 18 * @since BuddyPress (1.0.0)18 * @since 1.0.0 19 19 */ 20 20 class BP_Activity_Activity { … … 210 210 * Please use this hook to filter the properties above. Each part will be passed in. 211 211 * 212 * @since BuddyPress (1.0.0)212 * @since 1.0.0 213 213 * 214 214 * @param BP_Activity_Activity $this Current instance of the activity item being saved. Passed by reference. … … 247 247 * Fires after an activity item has been saved to the database. 248 248 * 249 * @since BuddyPress (1.0.0)249 * @since 1.0.0 250 250 * 251 251 * @param BP_Activity_Activity $this Current instance of activity item being saved. Passed by reference. … … 457 457 * Filters the MySQL WHERE conditions for the Activity items get method. 458 458 * 459 * @since BuddyPress (1.9.0)459 * @since 1.9.0 460 460 * 461 461 * @param array $where_conditions Current conditions for MySQL WHERE statement. … … 473 473 * Filters the preferred order of indexes for activity item. 474 474 * 475 * @since BuddyPress (1.6.0)475 * @since 1.6.0 476 476 * 477 477 * @param array Array of indexes in preferred order. … … 507 507 * It is not recommended to use the legacy structure, but allowed to if needed. 508 508 * 509 * @since BuddyPress (2.0.0)509 * @since 2.0.0 510 510 * 511 511 * @param bool $value Whether to use legacy structure or not. … … 530 530 * Filters the legacy MySQL query statement so plugins can alter before results are fetched. 531 531 * 532 * @since BuddyPress (1.5.0)532 * @since 1.5.0 533 533 * 534 534 * @param string $value Concatenated MySQL statement pieces to be query results with for legacy query. … … 554 554 * Filters the paged activities MySQL statement. 555 555 * 556 * @since BuddyPress (2.0.0)556 * @since 2.0.0 557 557 * 558 558 * @param string $activity_ids_sql MySQL statement used to query for Activity IDs. … … 605 605 * Filters the total activities MySQL statement. 606 606 * 607 * @since BuddyPress (1.5.0)607 * @since 1.5.0 608 608 * 609 609 * @param string $value MySQL statement used to query for total activities. … … 629 629 * Convert activity IDs to activity objects, as expected in template loop. 630 630 * 631 * @since BuddyPress (2.0.0)631 * @since 2.0.0 632 632 * 633 633 * @param array $activity_ids Array of activity IDs. … … 694 694 * Append xProfile fullnames to an activity array. 695 695 * 696 * @since BuddyPress (2.0.0)696 * @since 2.0.0 697 697 * 698 698 * @param array $activities Activities array. … … 735 735 * their own caches at the beginning of an activity loop. 736 736 * 737 * @since BuddyPress (2.0.0)737 * @since 2.0.0 738 738 * 739 739 * @param array $activities Array of activities. … … 746 746 * Filters inside prefetch_object_data method to aid in pre-fetching object data associated with activity item. 747 747 * 748 * @since BuddyPress (2.0.0)748 * @since 2.0.0 749 749 * 750 750 * @param array $activities Array of activities. … … 761 761 * be left in place. 762 762 * 763 * @since BuddyPress (2.0.0)763 * @since 2.0.0 764 764 * 765 765 * @param array $activities Array of activities. … … 789 789 * AND keyword from the 'where' clause). 790 790 * 791 * @since BuddyPress (1.8.0)791 * @since 1.8.0 792 792 * 793 793 * @param array $meta_query An array of meta_query filters. See the … … 830 830 * keyword from the query). 831 831 * 832 * @since BuddyPress (2.1.0)832 * @since 2.1.0 833 833 * 834 834 * @param array $date_query An array of date_query parameters. See the … … 857 857 * Can handle multiple scopes. 858 858 * 859 * @since BuddyPress (2.2.0)859 * @since 2.2.0 860 860 * 861 861 * @param mixed $scope The activity scope. Accepts string or array of scopes. … … 906 906 * - bp_friends_filter_activity_scope() - used for 'friends' scope 907 907 * 908 * @since BuddyPress (2.2.0)908 * @since 2.2.0 909 909 * 910 910 * @param array { … … 959 959 * As of 1.5.x, use BP_Activity_Activity::get() with an 'in' parameter instead. 960 960 * 961 * @since BuddyPress (1.2.0)961 * @since 1.2.0 962 962 * 963 963 * @deprecated 1.5 … … 1047 1047 * Otherwise use the filters. 1048 1048 * 1049 * @since BuddyPress (1.2.0)1049 * @since 1.2.0 1050 1050 * 1051 1051 * @param array $args { … … 1155 1155 * Action to allow intercepting activity items to be deleted. 1156 1156 * 1157 * @since BuddyPress (2.3.0)1157 * @since 2.3.0 1158 1158 * 1159 1159 * @param array $activities Array of activities. … … 1173 1173 * Action to allow intercepting activity items just deleted. 1174 1174 * 1175 * @since BuddyPress (2.3.0)1175 * @since 2.3.0 1176 1176 * 1177 1177 * @param array $activities Array of activities. … … 1222 1222 * use it going forward, and use BP_Activity_Activity::delete() instead. 1223 1223 * 1224 * @since BuddyPress (1.2.0)1225 * @deprecated BuddyPress (2.3.0)1224 * @since 1.2.0 1225 * @deprecated 2.3.0 1226 1226 * 1227 1227 * @param array $activity_ids Activity IDs whose comments should be deleted. … … 1253 1253 * Delete the meta entries associated with a set of activity items. 1254 1254 * 1255 * @since BuddyPress (1.2.0)1255 * @since 1.2.0 1256 1256 * 1257 1257 * @param array $activity_ids Activity IDs whose meta should be deleted. … … 1272 1272 * Append activity comments to their associated activity items. 1273 1273 * 1274 * @since BuddyPress (1.2.0)1274 * @since 1.2.0 1275 1275 * 1276 1276 * @global wpdb $wpdb WordPress database object. … … 1303 1303 * Get activity comments that are associated with a specific activity ID. 1304 1304 * 1305 * @since BuddyPress (1.2.0)1305 * @since 1.2.0 1306 1306 * 1307 1307 * @global wpdb $wpdb WordPress database object. … … 1360 1360 * Filters if BuddyPress should use the legacy activity query. 1361 1361 * 1362 * @since BuddyPress (2.0.0)1362 * @since 2.0.0 1363 1363 * 1364 1364 * @param bool $value Whether or not to use the legacy query. … … 1371 1371 * Filters the MySQL prepared statement for the legacy activity query. 1372 1372 * 1373 * @since BuddyPress (1.5.0)1373 * @since 1.5.0 1374 1374 * 1375 1375 * @param string $value Prepared statement for the activity query. … … 1463 1463 * Rebuild nested comment tree under an activity or activity comment. 1464 1464 * 1465 * @since BuddyPress (1.2.0)1465 * @since 1.2.0 1466 1466 * 1467 1467 * @global wpdb $wpdb WordPress database object. … … 1503 1503 * Get child comments of an activity or activity comment. 1504 1504 * 1505 * @since BuddyPress (1.2.0)1505 * @since 1.2.0 1506 1506 * 1507 1507 * @global wpdb $wpdb WordPress database object. … … 1569 1569 * Create SQL IN clause for filter queries. 1570 1570 * 1571 * @since BuddyPress (1.5.0)1571 * @since 1.5.0 1572 1572 * 1573 1573 * @see BP_Activity_Activity::get_filter_sql() … … 1607 1607 * Create filter SQL clauses. 1608 1608 * 1609 * @since BuddyPress (1.5.0)1609 * @since 1.5.0 1610 1610 * 1611 1611 * @param array $filter_array { … … 1687 1687 * Get the date/time of last recorded activity. 1688 1688 * 1689 * @since BuddyPress (1.2.0)1689 * @since 1.2.0 1690 1690 * 1691 1691 * @return string ISO timestamp. … … 1702 1702 * Get favorite count for a given user. 1703 1703 * 1704 * @since BuddyPress (1.2.0)1704 * @since 1.2.0 1705 1705 * 1706 1706 * @param int $user_id The ID of the user whose favorites you're counting. … … 1762 1762 * Subject to removal once WordPress makes PHP 5.3.0 the minimum requirement. 1763 1763 * 1764 * @since BuddyPress (2.2.0)1764 * @since 2.2.0 1765 1765 * 1766 1766 * @see http://php.net/manual/en/function.array-replace-recursive.php#109390 -
trunk/src/bp-activity/classes/class-bp-activity-feed.php
r9834 r10077 4 4 * 5 5 * @package BuddyPress 6 * @subpackage Activity 6 * @subpackage ActivityFeeds 7 7 */ 8 8 … … 31 31 * @type array $activity_args Optional. Arguments passed to {@link bp_has_activities()} 32 32 * } 33 * @since BuddyPress (1.8.0)33 * @since 1.8.0 34 34 */ 35 35 class BP_Activity_Feed { … … 74 74 * Filters if BuddyPress should consider feeds enabled. If disabled, it will return early. 75 75 * 76 * @since BuddyPress (1.8.0)76 * @since 1.8.0 77 77 * 78 78 * @param bool true Default true aka feeds are enabled. … … 126 126 * Fires before the feed is setup so plugins can modify. 127 127 * 128 * @since BuddyPress (1.8.0)128 * @since 1.8.0 129 129 * 130 130 * @param BP_Activity_Feed $this Current instance of activity feed. Passed by reference. … … 144 144 * Fires after the feed is setup so plugins can modify. 145 145 * 146 * @since BuddyPress (1.8.0)146 * @since 1.8.0 147 147 * 148 148 * @param BP_Activity_Feed $this Current instance of activity feed. Passed by reference. … … 210 210 * This hook was originally separated out for individual components but has since been abstracted into the BP_Activity_Feed class. 211 211 * 212 * @since BuddyPress (1.0.0)212 * @since 1.0.0 213 213 */ 214 214 do_action( 'bp_activity_' . $this->id . '_feed' ); … … 225 225 * This hook was originally separated out for individual components but has since been abstracted into the BP_Activity_Feed class. 226 226 * 227 * @since BuddyPress (1.0.0)227 * @since 1.0.0 228 228 */ 229 229 do_action( 'bp_activity_' . $this->id . '_feed_head' ); … … 254 254 * This hook was originally separated out for individual components but has since been abstracted into the BP_Activity_Feed class. 255 255 * 256 * @since BuddyPress (1.0.0)256 * @since 1.0.0 257 257 */ 258 258 do_action( 'bp_activity_' . $id . '_feed_item' ); … … 293 293 * Most of this class method is derived from {@link WP::send_headers()}. 294 294 * 295 * @since BuddyPress (1.9.0)295 * @since 1.9.0 296 296 * 297 297 * @access protected … … 388 388 <