Changeset 10825 for trunk/src/bp-activity/bp-activity-template.php
- Timestamp:
- 05/29/2016 06:12:08 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-template.php
r10824 r10825 20 20 * @since 1.5.0 21 21 * 22 * @uses bp_get_activity_slug()23 22 */ 24 23 function bp_activity_slug() { … … 30 29 * @since 1.5.0 31 30 * 32 * @uses apply_filters() To call the 'bp_get_activity_slug' hook.33 31 * 34 32 * @return string The activity component slug. … … 51 49 * @since 1.5.0 52 50 * 53 * @uses bp_get_activity_root_slug()54 51 */ 55 52 function bp_activity_root_slug() { … … 61 58 * @since 1.5.0 62 59 * 63 * @uses apply_filters() To call the 'bp_get_activity_root_slug' hook.64 60 * 65 61 * @return string The activity component root slug. … … 82 78 * @since 1.5.0 83 79 * 84 * @uses bp_get_activity_directory_permalink()85 80 */ 86 81 function bp_activity_directory_permalink() { … … 92 87 * @since 1.5.0 93 88 * 94 * @uses trailingslashit()95 * @uses bp_get_root_domain()96 * @uses bp_get_activity_root_slug()97 * @uses apply_filters() To call the 'bp_get_activity_directory_permalink' hook.98 89 * 99 90 * @return string Activity directory permalink. … … 122 113 * 123 114 * @global object $activities_template {@link BP_Activity_Template} 124 * @uses groups_is_user_member()125 * @uses bp_current_action()126 * @uses bp_is_current_action()127 * @uses bp_get_activity_slug()128 * @uses bp_action_variable()129 * @uses wp_parse_args()130 * @uses bp_is_active()131 * @uses friends_get_friend_user_ids()132 * @uses groups_get_user_groups()133 * @uses bp_activity_get_user_favorites()134 * @uses apply_filters() To call the 'bp_has_activities' hook.135 115 * 136 116 * @param array|string $args { … … 391 371 * 392 372 * @global object $activities_template {@link BP_Activity_Template} 393 * @uses BP_Activity_Template::user_activities() {@link BP_Activity_Template::user_activities()}394 373 * 395 374 * @return bool Returns true when activities are found. … … 406 385 * 407 386 * @global object $activities_template {@link BP_Activity_Template} 408 * @uses BP_Activity_Template::the_activity() {@link BP_Activity_Template::the_activity()}409 387 * 410 388 * @return object The current activity within the loop. … … 454 432 * 455 433 * @global object $activities_template {@link BP_Activity_Template} 456 * @uses BP_Activity_Template::the_activity() {@link BP_Activity_Template::the_activity()}457 434 */ 458 435 function bp_activity_pagination_count() { … … 466 443 * 467 444 * @global object $activities_template {@link BP_Activity_Template} 468 * @uses bp_core_number_format()469 445 * 470 446 * @return string The pagination text. … … 492 468 * @since 1.0.0 493 469 * 494 * @uses bp_get_activity_pagination_links()495 470 */ 496 471 function bp_activity_pagination_links() { … … 504 479 * 505 480 * @global object $activities_template {@link BP_Activity_Template} 506 * @uses apply_filters() To call the 'bp_get_activity_pagination_links' hook.507 481 * 508 482 * @return string The pagination links. … … 527 501 * 528 502 * @global object $activities_template {@link BP_Activity_Template} 529 * @uses apply_filters() To call the 'bp_activity_has_more_items' hook.530 503 * 531 504 * @return bool $has_more_items True if more items, false if not. … … 561 534 * @since 1.2.0 562 535 * 563 * @uses bp_get_activity_count()564 536 */ 565 537 function bp_activity_count() { … … 573 545 * 574 546 * @global object $activities_template {@link BP_Activity_Template} 575 * @uses apply_filters() To call the 'bp_get_activity_count' hook.576 547 * 577 548 * @return int The activity count. … … 595 566 * @since 1.2.0 596 567 * 597 * @uses bp_get_activity_per_page()598 568 */ 599 569 function bp_activity_per_page() { … … 607 577 * 608 578 * @global object $activities_template {@link BP_Activity_Template} 609 * @uses apply_filters() To call the 'bp_get_activity_per_page' hook.610 579 * 611 580 * @return int The activities per page. … … 629 598 * @since 1.0.0 630 599 * 631 * @uses bp_get_activities_title()632 600 * @todo Deprecate. 633 601 */ … … 642 610 * 643 611 * @global string $bp_activity_title 644 * @uses apply_filters() To call the 'bp_get_activities_title' hook.645 612 * @todo Deprecate. 646 613 * … … 665 632 * @since 1.0.0 666 633 * 667 * @uses bp_get_activities_no_activity()668 634 * @todo Deprecate. 669 635 */ … … 678 644 * 679 645 * @global string $bp_activity_no_activity 680 * @uses apply_filters() To call the 'bp_get_activities_no_activity' hook.681 646 * @todo Deprecate. 682 647 * … … 701 666 * @since 1.2.0 702 667 * 703 * @uses bp_get_activity_id()704 668 */ 705 669 function bp_activity_id() { … … 713 677 * 714 678 * @global object $activities_template {@link BP_Activity_Template} 715 * @uses apply_filters() To call the 'bp_get_activity_id' hook.716 679 * 717 680 * @return int The activity ID. … … 735 698 * @since 1.2.0 736 699 * 737 * @uses bp_get_activity_item_id()738 700 */ 739 701 function bp_activity_item_id() { … … 747 709 * 748 710 * @global object $activities_template {@link BP_Activity_Template} 749 * @uses apply_filters() To call the 'bp_get_activity_item_id' hook.750 711 * 751 712 * @return int The activity item ID. … … 769 730 * @since 1.2.0 770 731 * 771 * @uses bp_get_activity_secondary_item_id()772 732 */ 773 733 function bp_activity_secondary_item_id() { … … 781 741 * 782 742 * @global object $activities_template {@link BP_Activity_Template} 783 * @uses apply_filters() To call the 'bp_get_activity_secondary_item_id' hook.784 743 * 785 744 * @return int The activity secondary item ID. … … 803 762 * @since 1.2.0 804 763 * 805 * @uses bp_get_activity_date_recorded()806 764 */ 807 765 function bp_activity_date_recorded() { … … 815 773 * 816 774 * @global object $activities_template {@link BP_Activity_Template} 817 * @uses apply_filters() To call the 'bp_get_activity_date_recorded' hook.818 775 * 819 776 * @return string The date the activity was recorded. … … 837 794 * @since 2.1.0 838 795 * 839 * @uses bp_get_activity_member_display_name()840 796 */ 841 797 function bp_activity_member_display_name() { … … 849 805 * 850 806 * @global object $activities_template {@link BP_Activity_Template} 851 * @uses apply_filters() To call the 'bp_get_activity_member_display_name' hook.852 807 * 853 808 * @return string The date the activity was recorded. … … 875 830 * @since 1.2.0 876 831 * 877 * @uses bp_get_activity_object_name()878 832 */ 879 833 function bp_activity_object_name() { … … 887 841 * 888 842 * @global object $activities_template {@link BP_Activity_Template} 889 * @uses apply_filters() To call the 'bp_get_activity_object_name' hook.890 843 * 891 844 * @return string The activity object name. … … 909 862 * @since 1.2.0 910 863 * 911 * @uses bp_get_activity_type()912 864 */ 913 865 function bp_activity_type() { … … 921 873 * 922 874 * @global object $activities_template {@link BP_Activity_Template} 923 * @uses apply_filters() To call the 'bp_get_activity_type' hook.924 875 * 925 876 * @return string The activity type. … … 949 900 * remove redundant echo 950 901 * 951 * @uses bp_activity_type()952 902 */ 953 903 function bp_activity_action_name() { echo bp_activity_type(); } … … 963 913 * @todo Properly deprecate in favor of bp_get_activity_type(). 964 914 * 965 * @uses bp_get_activity_type()966 915 * 967 916 * @return string The activity type. … … 974 923 * @since 1.1.0 975 924 * 976 * @uses bp_get_activity_user_id()977 925 */ 978 926 function bp_activity_user_id() { … … 986 934 * 987 935 * @global object $activities_template {@link BP_Activity_Template} 988 * @uses apply_filters() To call the 'bp_get_activity_user_id' hook.989 936 * 990 937 * @return int The activity user ID. … … 1008 955 * @since 1.2.0 1009 956 * 1010 * @uses bp_get_activity_user_link()1011 957 */ 1012 958 function bp_activity_user_link() { … … 1020 966 * 1021 967 * @global object $activities_template {@link BP_Activity_Template} 1022 * @uses bp_core_get_user_domain()1023 * @uses apply_filters() To call the 'bp_get_activity_user_link' hook.1024 968 * 1025 969 * @return string $link The activity user link. … … 1050 994 * 1051 995 * @see bp_get_activity_avatar() for description of arguments. 1052 * @uses bp_get_activity_avatar()1053 996 * 1054 997 * @param array|string $args See {@link bp_get_activity_avatar()} for description. … … 1064 1007 * @see bp_core_fetch_avatar() For a description of the arguments. 1065 1008 * @global object $activities_template {@link BP_Activity_Template} 1066 * @uses bp_is_single_activity()1067 * @uses wp_parse_args()1068 * @uses apply_filters() To call the 'bp_get_activity_avatar_object_' . $current_activity_item->component hook.1069 * @uses apply_filters() To call the 'bp_get_activity_avatar_item_id' hook.1070 * @uses bp_core_fetch_avatar()1071 * @uses apply_filters() To call the 'bp_get_activity_avatar' hook.1072 1009 * 1073 1010 * @param array|string $args { … … 1185 1122 * 1186 1123 * @see bp_get_activity_secondary_avatar() for description of arguments. 1187 * @uses bp_get_activity_secondary_avatar()1188 1124 * 1189 1125 * @param array|string $args See {@link bp_get_activity_secondary_avatar} for description. … … 1200 1136 * @see bp_core_fetch_avatar() for description of arguments. 1201 1137 * @global object $activities_template {@link BP_Activity_Template} 1202 * @uses wp_parse_args()1203 * @uses get_blog_option()1204 * @uses apply_filters() To call the 'bp_get_activity_secondary_avatar_object_' . $activities_template->activity->component hook.1205 * @uses apply_filters() To call the 'bp_get_activity_secondary_avatar_item_id' hook.1206 * @uses bp_core_fetch_avatar()1207 * @uses apply_filters() To call the 'bp_get_activity_secondary_avatar' hook.1208 1138 * 1209 1139 * @param array|string $args { … … 1376 1306 * 1377 1307 * @param array $args See bp_get_activity_action(). 1378 * @uses bp_get_activity_action()1379 1308 */ 1380 1309 function bp_activity_action( $args = array() ) { … … 1388 1317 * 1389 1318 * @global object $activities_template {@link BP_Activity_Template} 1390 * @uses apply_filters_ref_array() To call the 'bp_get_activity_action_pre_meta' hook.1391 * @uses bp_insert_activity_meta()1392 * @uses apply_filters_ref_array() To call the 'bp_get_activity_action' hook.1393 1319 * 1394 1320 * @param array $args { … … 1442 1368 * @since 1.2.0 1443 1369 * 1444 * @uses bp_get_activity_content_body()1445 1370 */ 1446 1371 function bp_activity_content_body() { … … 1454 1379 * 1455 1380 * @global object $activities_template {@link BP_Activity_Template} 1456 * @uses bp_insert_activity_meta()1457 * @uses apply_filters_ref_array() To call the 'bp_get_activity_content_body' hook.1458 1381 * 1459 1382 * @return string The activity content body. … … 1504 1427 * @todo properly deprecate this function. 1505 1428 * 1506 * @uses bp_get_activity_content()1507 1429 */ 1508 1430 function bp_activity_content() { … … 1518 1440 * @todo properly deprecate this function. 1519 1441 * 1520 * @uses bp_get_activity_action()1521 * @uses bp_get_activity_content_body()1522 * @uses apply_filters() To call the 'bp_get_activity_content' hook.1523 1442 * 1524 1443 * @return string The activity content. … … 1545 1464 * 1546 1465 * @global object $activities_template {@link BP_Activity_Template} 1547 * @uses bp_core_time_since()1548 * @uses apply_filters_ref_array() To call the 'bp_activity_time_since' hook.1549 * @uses bp_is_single_activity()1550 * @uses bp_activity_get_permalink()1551 * @uses esc_attr__()1552 * @uses apply_filters_ref_array() To call the 'bp_activity_permalink' hook.1553 * @uses apply_filters() To call the 'bp_insert_activity_meta' hook.1554 1466 * 1555 1467 * @param string $content The activity content. … … 1621 1533 * 1622 1534 * @global object $activities_template {@link BP_Activity_Template} 1623 * @uses apply_filters() To call the 'bp_activity_user_can_delete' hook.1624 1535 * 1625 1536 * @param object|bool $activity Optional. Falls back on the current item in the loop. … … 1680 1591 * 1681 1592 * @see bp_get_activity_parent_content() for a description of arguments. 1682 * @uses bp_get_activity_parent_content()1683 1593 * 1684 1594 * @param array|string $args See {@link bp_get_activity_parent_content} for description. … … 1694 1604 * 1695 1605 * @global object $activities_template {@link BP_Activity_Template} 1696 * @uses apply_filters() To call the 'bp_get_activity_parent_content' hook.1697 1606 * 1698 1607 * @param string $args Unused. Left over from an earlier implementation. … … 1801 1710 * @since 1.2.0 1802 1711 * 1803 * @uses bp_get_activity_is_favorite()1804 1712 */ 1805 1713 function bp_activity_is_favorite() { … … 1813 1721 * 1814 1722 * @global object $activities_template {@link BP_Activity_Template} 1815 * @uses apply_filters() To call the 'bp_get_activity_is_favorite' hook.1816 1723 * 1817 1724 * @return bool True if user favorite, false otherwise. … … 1853 1760 * 1854 1761 * @global object $activities_template {@link BP_Activity_Template} 1855 * @uses bp_activity_recurse_comments()1856 1762 * 1857 1763 * @param string $args Unused. Left over from an earlier implementation. … … 1877 1783 * 1878 1784 * @global object $activities_template {@link BP_Activity_Template} 1879 * @uses locate_template()1880 1785 * 1881 1786 * @param object $comment The activity object currently being recursed. … … 1937 1842 * 1938 1843 * @global object $activities_template {@link BP_Activity_Template} 1939 * @uses apply_filters() To call the 'bp_activity_current_comment' hook.1940 1844 * 1941 1845 * @return object|bool $current_comment The activity comment currently being … … 1965 1869 * @since 1.5.0 1966 1870 * 1967 * @uses bp_get_activity_comment_id()1968 1871 */ 1969 1872 function bp_activity_comment_id() { … … 1977 1880 * 1978 1881 * @global object $activities_template {@link BP_Activity_Template} 1979 * @uses apply_filters() To call the 'bp_activity_comment_id' hook.1980 1882 * 1981 1883 * @return int|bool $comment_id The ID of the activity comment currently … … 2002 1904 * @since 1.5.0 2003 1905 * 2004 * @uses bp_get_activity_comment_user_id()2005 1906 */ 2006 1907 function bp_activity_comment_user_id() { … … 2014 1915 * 2015 1916 * @global object $activities_template {@link BP_Activity_Template} 2016 * @uses apply_filters() To call the 'bp_activity_comment_user_id' hook.2017 1917 * 2018 1918 * @return int|bool $user_id The user_id of the author of the displayed … … 2039 1939 * @since 1.5.0 2040 1940 * 2041 * @uses bp_get_activity_comment_user_link()2042 1941 */ 2043 1942 function bp_activity_comment_user_link() { … … 2050 1949 * @since 1.5.0 2051 1950 * 2052 * @uses bp_core_get_user_domain()2053 * @uses bp_get_activity_comment_user_id()2054 * @uses apply_filters() To call the 'bp_activity_comment_user_link' hook.2055 1951 * 2056 1952 * @return string $user_link The URL of the activity comment author's profile. … … 2074 1970 * @since 1.5.0 2075 1971 * 2076 * @uses bp_get_activity_comment_name()2077 1972 */ 2078 1973 function bp_activity_comment_name() { … … 2089 1984 * 2090 1985 * @global object $activities_template {@link BP_Activity_Template} 2091 * @uses apply_filters() To call the 'bp_acomment_name' hook.2092 * @uses apply_filters() To call the 'bp_activity_comment_name' hook.2093 1986 * 2094 1987 * @return string $name The full name of the activity comment author. … … 2119 2012 * @since 1.5.0 2120 2013 * 2121 * @uses bp_get_activity_comment_date_recorded()2122 2014 */ 2123 2015 function bp_activity_comment_date_recorded() { … … 2130 2022 * @since 1.5.0 2131 2023 * 2132 * @uses bp_core_time_since()2133 * @uses apply_filters() To call the 'bp_activity_comment_date_recorded' hook.2134 2024 * 2135 2025 * @return string|bool $date_recorded Time since the activity was recorded, … … 2153 2043 * @since 2.3.0 2154 2044 * 2155 * @uses bp_get_activity_comment_date_recorded()2156 2045 */ 2157 2046 function bp_activity_comment_date_recorded_raw() { … … 2165 2054 * 2166 2055 * @global object $activities_template {@link BP_Activity_Template} 2167 * @uses bp_core_time_since()2168 * @uses apply_filters() To call the 'bp_activity_comment_date_recorded' hook.2169 2056 * 2170 2057 * @return string|bool $date_recorded Time since the activity was recorded, … … 2189 2076 * @since 1.5.0 2190 2077 * 2191 * @uses bp_get_activity_comment_delete_link()2192 2078 */ 2193 2079 function bp_activity_comment_delete_link() { … … 2200 2086 * @since 1.5.0 2201 2087 * 2202 * @uses wp_nonce_url()2203 * @uses bp_get_root_domain()2204 * @uses bp_get_activity_slug()2205 * @uses bp_get_activity_comment_id()2206 * @uses apply_filters() To call the 'bp_activity_comment_delete_link' hook.2207 2088 * 2208 2089 * @return string $link The nonced URL for deleting the current … … 2227 2108 * @since 1.5.0 2228 2109 * 2229 * @uses bp_get_activity_comment_content()2230 2110 */ 2231 2111 function bp_activity_comment_content() { … … 2244 2124 * 2245 2125 * @global object $activities_template {@link BP_Activity_Template} 2246 * @uses apply_filters() To call the 'bp_get_activity_content' hook.2247 * @uses apply_filters() To call the 'bp_activity_comment_content' hook.2248 2126 * 2249 2127 * @return string $content The content of the current activity comment. … … 2270 2148 * @since 1.2.0 2271 2149 * 2272 * @uses bp_activity_get_comment_count()2273 2150 */ 2274 2151 function bp_activity_comment_count() { … … 2282 2159 * 2283 2160 * @global object $activities_template {@link BP_Activity_Template} 2284 * @uses bp_activity_recurse_comment_count()2285 * @uses apply_filters() To call the 'bp_activity_get_comment_count' hook.2286 2161 * 2287 2162 * @param array|null $deprecated Deprecated. … … 2319 2194 * @since 1.2.0 2320 2195 * 2321 * @uses bp_activity_recurse_comment_count()2322 * @uses apply_filters() To call the 'bp_activity_recurse_comment_count' hook.2323 2196 * 2324 2197 * @param object $comment Activity comment object. … … 2384 2257 * @since 1.2.0 2385 2258 * 2386 * @uses bp_get_activity_comment_link()2387 2259 */ 2388 2260 function bp_activity_comment_link() { … … 2396 2268 * 2397 2269 * @global object $activities_template {@link BP_Activity_Template} 2398 * @uses apply_filters() To call the 'bp_get_activity_comment_link' hook.2399 2270 * 2400 2271 * @return string The activity comment link. … … 2418 2289 * @since 1.2.0 2419 2290 * 2420 * @uses bp_get_activity_comment_form_nojs_display()2421 2291 */ 2422 2292 function bp_activity_comment_form_nojs_display() { … … 2449 2319 * @since 1.2.0 2450 2320 * 2451 * @uses bp_get_activity_comment_form_action()2452 2321 */ 2453 2322 function bp_activity_comment_form_action() { … … 2460 2329 * @since 1.2.0 2461 2330 * 2462 * @uses home_url()2463 * @uses bp_get_activity_root_slug()2464 * @uses apply_filters() To call the 'bp_get_activity_comment_form_action' hook.2465 2331 * 2466 2332 * @return string The activity comment form action. … … 2483 2349 * @since 1.2.0 2484 2350 * 2485 * @uses bp_get_activity_permalink_id()2486 2351 */ 2487 2352 function bp_activity_permalink_id() { … … 2494 2359 * @since 1.2.0 2495 2360 * 2496 * @uses apply_filters() To call the 'bp_get_activity_permalink_id' hook.2497 2361 * 2498 2362 * @return string The activity permalink ID. … … 2515 2379 * @since 1.2.0 2516 2380 * 2517 * @uses bp_get_activity_permalink_id()2518 2381 */ 2519 2382 function bp_activity_thread_permalink() { … … 2526 2389 * @since 1.2.0 2527 2390 * 2528 * @uses bp_activity_get_permalink()2529 * @uses apply_filters() To call the 'bp_get_activity_thread_permalink' hook.2530 2391 * 2531 2392 * @return string $link The activity thread permalink. … … 2551 2412 * @since 1.8.0 2552 2413 * 2553 * @uses bp_get_activity_permalink_id()2554 2414 */ 2555 2415 function bp_activity_comment_permalink() { … … 2561 2421 * @since 1.8.0 2562 2422 * 2563 * @uses bp_activity_get_permalink()2564 * @uses apply_filters() To call the 'bp_get_activity_comment_permalink' hook.2565 2423 * 2566 2424 * @return string $link The activity comment permalink. … … 2598 2456 * @since 1.2.0 2599 2457 * 2600 * @uses bp_get_activity_favorite_link()2601 2458 */ 2602 2459 function bp_activity_favorite_link() { … … 2610 2467 * 2611 2468 * @global object $activities_template {@link BP_Activity_Template} 2612 * @uses wp_nonce_url()2613 * @uses home_url()2614 * @uses bp_get_activity_root_slug()2615 * @uses apply_filters() To call the 'bp_get_activity_favorite_link' hook.2616 2469 * 2617 2470 * @return string The activity favorite link. … … 2635 2488 * @since 1.2.0 2636 2489 * 2637 * @uses bp_get_activity_unfavorite_link()2638 2490 */ 2639 2491 function bp_activity_unfavorite_link() { … … 2647 2499 * 2648 2500 * @global object $activities_template {@link BP_Activity_Template} 2649 * @uses wp_nonce_url()2650 * @uses home_url()2651 * @uses bp_get_activity_root_slug()2652 * @uses apply_filters() To call the 'bp_get_activity_unfavorite_link' hook.2653 2501 * 2654 2502 * @return string The activity unfavorite link. … … 2672 2520 * @since 1.0.0 2673 2521 * 2674 * @uses bp_get_activity_css_class()2675 2522 */ 2676 2523 function bp_activity_css_class() { … … 2684 2531 * 2685 2532 * @global object $activities_template {@link BP_Activity_Template} 2686 * @uses apply_filters() To call the 'bp_activity_mini_activity_types' hook.2687 * @uses bp_activity_get_comment_count()2688 * @uses bp_activity_can_comment()2689 * @uses apply_filters() To call the 'bp_get_activity_css_class' hook.2690 2533 * 2691 2534 * @return string The activity item's CSS class. … … 2735 2578 * @since 1.1.0 2736 2579 * 2737 * @uses bp_get_activity_delete_link()2738 2580 */ 2739 2581 function bp_activity_delete_link() { … … 2747 2589 * 2748 2590 * @global object $activities_template {@link BP_Activity_Template} 2749 * @uses bp_get_root_domain()2750 * @uses bp_get_activity_root_slug()2751 * @uses bp_is_activity_component()2752 * @uses bp_current_action()2753 * @uses wp_get_referer()2754 * @uses wp_nonce_url()2755 * @uses apply_filters() To call the 'bp_get_activity_delete_link' hook.2756 2591 * 2757 2592 * @return string $link Activity delete link. Contains $redirect_to arg … … 2785 2620 * @since 2.1.0 2786 2621 * 2787 * @uses bp_get_activity_delete_link()2788 2622 */ 2789 2623 function bp_activity_delete_url() { … … 2796 2630 * 2797 2631 * @global object $activities_template {@link BP_Activity_Template} 2798 * @uses bp_get_root_domain()2799 * @uses bp_get_activity_root_slug()2800 * @uses bp_is_activity_component()2801 * @uses bp_current_action()2802 * @uses add_query_arg()2803 * @uses wp_get_referer()2804 * @uses wp_nonce_url()2805 * @uses apply_filters() To call the 'bp_get_activity_delete_link' hook.2806 2632 * 2807 2633 * @return string $link Activity delete link. Contains $redirect_to arg … … 2836 2662 * 2837 2663 * @see bp_get_activity_latest_update() for description of parameters. 2838 * @uses bp_get_activity_latest_update()2839 2664 * 2840 2665 * @param int $user_id See {@link bp_get_activity_latest_update()} for description. … … 2849 2674 * @since 1.2.0 2850 2675 * 2851 * @uses bp_is_user_inactive()2852 * @uses bp_core_is_user_deleted()2853 * @uses bp_get_user_meta()2854 * @uses apply_filters() To call the 'bp_get_activity_latest_update_excerpt' hook.2855 * @uses bp_create_excerpt()2856 * @uses bp_get_root_domain()2857 * @uses bp_get_activity_root_slug()2858 * @uses apply_filters() To call the 'bp_get_activity_latest_update' hook.2859 2676 * 2860 2677 * @param int $user_id If empty, will fall back on displayed user. … … 2912 2729 * 2913 2730 * @see bp_get_activity_filter_links() for description of parameters. 2914 * @uses bp_get_activity_filter_links()2915 2731 * 2916 2732 * @param array|bool $args See {@link bp_get_activity_filter_links()} for description. … … 2925 2741 * @since 1.1.0 2926 2742 * 2927 * @uses wp_parse_args()2928 * @uses BP_Activity_Activity::get_recorded_components() {@link BP_Activity_Activity}2929 * @uses esc_attr()2930 * @uses add_query_arg()2931 * @uses remove_query_arg()2932 * @uses apply_filters() To call the 'bp_get_activity_filter_link_href' hook.2933 * @uses apply_filters() To call the 'bp_get_activity_filter_links' hook.2934 2743 * 2935 2744 * @param array|bool $args { … … 3029 2838 * 3030 2839 * @global object $activities_template {@link BP_Activity_Template} 3031 * @uses bp_get_activity_action_name()3032 * @uses apply_filters() To call the 'bp_activity_can_comment' hook.3033 2840 * 3034 2841 * @return bool $can_comment True if item can receive comments. … … 3115 2922 * @since 1.5.0 3116 2923 * 3117 * @uses apply_filters() To call the 'bp_activity_can_favorite' hook.3118 *3119 2924 * @return bool True if comment can receive comments. 3120 2925 */ … … 3137 2942 * 3138 2943 * @see bp_get_total_favorite_count_for_user() for description of parameters. 3139 * @uses bp_get_total_favorite_count_for_user()3140 2944 * 3141 2945 * @param int $user_id See {@link bp_get_total_favorite_count_for_user()}. … … 3150 2954 * @since 1.2.0 3151 2955 * 3152 * @uses bp_activity_total_favorites_for_user()3153 * @uses apply_filters() To call the 'bp_get_total_favorite_count_for_user' hook.3154 2956 * 3155 2957 * @param int $user_id ID of user being queried. Default: displayed user ID. … … 3190 2992 * 3191 2993 * @see bp_get_total_mention_count_for_user() for description of parameters. 3192 * @uses bp_get_total_favorite_count_for_user()3193 2994 * 3194 2995 * @param int $user_id See {@link bp_get_total_mention_count_for_user()}. … … 3203 3004 * @since 1.2.0 3204 3005 * 3205 * @uses bp_get_user_meta()3206 * @uses apply_filters() To call the 'bp_get_total_mention_count_for_user' hook.3207 3006 * 3208 3007 * @param int $user_id ID of user being queried. Default: displayed user ID. … … 3238 3037 * @since 1.2.0 3239 3038 * 3240 * @uses bp_get_send_public_message_link()3241 3039 */ 3242 3040 function bp_send_public_message_link() { … … 3249 3047 * @since 1.2.0 3250 3048 * 3251 * @uses is_user_logged_in()3252 * @uses bp_is_my_profile()3253 * @uses bp_is_user()3254 * @uses wp_nonce_url()3255 * @uses bp_get_activity_directory_permalink()3256 * @uses apply_filters() To call the 'bp_get_send_public_message_link' hook.3257 3049 * 3258 3050 * @return string The public message link for the displayed user. … … 3312 3104 * 3313 3105 * @see bp_get_mentioned_user_display_name() for description of parameters. 3314 * @uses bp_get_mentioned_user_display_name()3315 3106 * 3316 3107 * @param int|string|bool $user_id_or_username See {@link bp_get_mentioned_user_display_name()}. … … 3325 3116 * @since 1.2.0 3326 3117 * 3327 * @uses bp_core_get_user_displayname()3328 * @uses apply_filters() To call the 'bp_get_mentioned_user_display_name' hook.3329 3118 * 3330 3119 * @param int|string|bool $user_id_or_username User ID or username. … … 3358 3147 * 3359 3148 * @see bp_get_send_public_message_button() for description of parameters. 3360 * @uses bp_get_send_public_message_button()3361 3149 * 3362 3150 * @param array|string $args See {@link bp_get_send_public_message_button()}. … … 3371 3159 * @since 1.2.0 3372 3160 * 3373 * @uses bp_get_send_public_message_link()3374 * @uses wp_parse_args()3375 * @uses bp_get_button()3376 * @uses apply_filters() To call the 'bp_get_send_public_message_button' hook.3377 3161 * 3378 3162 * @param array|string $args { … … 3422 3206 * @since 1.2.0 3423 3207 * 3424 * @uses bp_get_activity_post_form_action()3425 3208 */ 3426 3209 function bp_activity_post_form_action() { … … 3433 3216 * @since 1.2.0 3434 3217 * 3435 * @uses home_url()3436 * @uses bp_get_activity_root_slug()3437 * @uses apply_filters() To call the 'bp_get_activity_post_form_action' hook.3438 3218 * 3439 3219 * @return string The activity post form action. … … 3688 3468 * @since 1.0.0 3689 3469 * 3690 * @uses bp_get_sitewide_activity_feed_link()3691 3470 */ 3692 3471 function bp_sitewide_activity_feed_link() { … … 3699 3478 * @since 1.0.0 3700 3479 * 3701 * @uses home_url()3702 * @uses bp_get_activity_root_slug()3703 * @uses apply_filters() To call the 'bp_get_sitewide_activity_feed_link' hook.3704 3480 * 3705 3481 * @return string The sitewide activity feed link. … … 3722 3498 * @since 1.2.0 3723 3499 * 3724 * @uses bp_get_member_activity_feed_link()3725 3500 */ 3726 3501 function bp_member_activity_feed_link() { … … 3736 3511 * @todo properly deprecate in favor of bp_member_activity_feed_link(). 3737 3512 * 3738 * @uses bp_get_member_activity_feed_link()3739 3513 */ 3740 3514 function bp_activities_member_rss_link() { echo bp_get_member_activity_feed_link(); } … … 3745 3519 * @since 1.2.0 3746 3520 * 3747 * @uses bp_is_profile_component()3748 * @uses bp_is_current_action()3749 * @uses bp_displayed_user_domain()3750 * @uses bp_get_activity_slug()3751 * @uses bp_is_active()3752 * @uses bp_get_friends_slug()3753 * @uses bp_get_groups_slug()3754 * @uses apply_filters() To call the 'bp_get_activities_member_rss_link' hook.3755 3521 * 3756 3522 * @return string $link The member activity feed link. … … 3801 3567 * @todo properly deprecate in favor of bp_get_member_activity_feed_link(). 3802 3568 * 3803 * @uses bp_get_member_activity_feed_link()3804 3569 * 3805 3570 * @return string The member activity feed link. … … 3815 3580 * @since 1.0.0 3816 3581 * 3817 * @uses bp_activity_feed_item_guid()3818 3582 */ 3819 3583 function bp_activity_feed_item_guid() { … … 3827 3591 * 3828 3592 * @global object $activities_template {@link BP_Activity_Template} 3829 * @uses apply_filters() To call the 'bp_get_activity_feed_item_guid' hook.3830 3593 * 3831 3594 * @return string The activity feed item guid. … … 3849 3612 * @since 1.0.0 3850 3613 * 3851 * @uses bp_get_activity_feed_item_title()3852 3614 */ 3853 3615 function bp_activity_feed_item_title() { … … 3861 3623 * 3862 3624 * @global object $activities_template {@link BP_Activity_Template} 3863 * @uses ent2ncr()3864 * @uses convert_chars()3865 * @uses bp_create_excerpt()3866 * @uses apply_filters() To call the 'bp_get_activity_feed_item_title' hook.3867 3625 * 3868 3626 * @return string $title The activity feed item title. … … 3903 3661 * @since 1.0.0 3904 3662 * 3905 * @uses bp_get_activity_feed_item_link()3906 3663 */ 3907 3664 function bp_activity_feed_item_link() { … … 3915 3672 * 3916 3673 * @global object $activities_template {@link BP_Activity_Template} 3917 * @uses apply_filters() To call the 'bp_get_activity_feed_item_link' hook.3918 3674 * 3919 3675 * @return string The activity feed item link. … … 3941 3697 * @since 1.0.0 3942 3698 * 3943 * @uses bp_get_activity_feed_item_date()3944 3699 */ 3945 3700 function bp_activity_feed_item_date() { … … 3953 3708 * 3954 3709 * @global object $activities_template {@link BP_Activity_Template} 3955 * @uses apply_filters() To call the 'bp_get_activity_feed_item_date' hook.3956 3710 * 3957 3711 * @return string The activity feed item date. … … 3979 3733 * @since 1.0.0 3980 3734 * 3981 * @uses bp_get_activity_feed_item_description()3982 3735 */ 3983 3736 function bp_activity_feed_item_description() { … … 3991 3744 * 3992 3745 * @global object $activities_template {@link BP_Activity_Template} 3993 * @uses ent2ncr()3994 * @uses convert_chars()3995 * @uses apply_filters() To call the 'bp_get_activity_feed_item_description' hook.3996 3746 * 3997 3747 * @return string The activity feed item description. … … 4025 3775 * @since 1.5.0 4026 3776 * 4027 * @uses bloginfo()4028 * @uses bp_sitewide_activity_feed_link()4029 3777 */ 4030 3778 function bp_activity_sitewide_feed() { … … 4044 3792 * @param string $context The current context. 'activity', 'member', 4045 3793 * 'member_groups', 'group'. 4046 * @uses bp_get_activity_show_filters()4047 3794 */ 4048 3795 function bp_activity_show_filters( $context = '' ) {
Note: See TracChangeset
for help on using the changeset viewer.