Changeset 10077 for trunk/src/bp-activity/bp-activity-functions.php
- Timestamp:
- 08/31/2015 06:51:35 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-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.
Note: See TracChangeset
for help on using the changeset viewer.