Changeset 10825 for trunk/src/bp-activity/bp-activity-functions.php
- Timestamp:
- 05/29/2016 06:12:08 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-functions.php
r10741 r10825 41 41 * @since 1.8.0 42 42 * 43 * @uses apply_filters() To call 'bp_activity_do_mentions' hook.44 *45 43 * @return bool $retval True to enable mentions, false to disable. 46 44 */ … … 134 132 * @since 1.5.0 135 133 * 136 * @uses bp_delete_user_meta()137 *138 134 * @param int $user_id The id of the user whose unread mentions are being reset. 139 135 */ … … 162 158 * @since 1.5.0 163 159 * 164 * @uses bp_activity_find_mentions()165 * @uses bp_activity_update_mention_count_for_user()166 *167 160 * @param int $activity_id The unique id for the activity item. 168 161 * @param string $action Can be 'delete' or 'add'. Defaults to 'add'. … … 200 193 * 201 194 * @since 1.7.0 202 *203 * @uses bp_get_user_meta()204 * @uses bp_update_user_meta()205 195 * 206 196 * @param int $user_id The user ID. … … 788 778 * @since 1.1.0 789 779 * 790 * @uses apply_filters() To call the 'bp_activity_get_action' hook.791 *792 780 * @param string $component_id The unique string ID of the component. 793 781 * @param string $key The action key. … … 859 847 * @since 1.2.0 860 848 * 861 * @uses bp_get_user_meta()862 * @uses apply_filters() To call the 'bp_activity_get_user_favorites' hook.863 *864 849 * @param int $user_id ID of the user whose favorites are being queried. 865 850 * @return array IDs of the user's favorite activity items. … … 889 874 * 890 875 * @since 1.2.0 891 *892 * @uses is_user_logged_in()893 * @uses bp_get_user_meta()894 * @uses bp_activity_get_meta()895 * @uses bp_update_user_meta()896 * @uses bp_activity_update_meta()897 * @uses do_action() To call the 'bp_activity_add_user_favorite' hook.898 * @uses do_action() To call the 'bp_activity_add_user_favorite_fail' hook.899 876 * 900 877 * @param int $activity_id ID of the activity item being favorited. … … 972 949 * @since 1.2.0 973 950 * 974 * @uses is_user_logged_in()975 * @uses bp_get_user_meta()976 * @uses bp_activity_get_meta()977 * @uses bp_activity_update_meta()978 * @uses bp_update_user_meta()979 * @uses do_action() To call the 'bp_activity_remove_user_favorite' hook.980 *981 951 * @param int $activity_id ID of the activity item being unfavorited. 982 952 * @param int $user_id ID of the user unfavoriting the activity item. … … 1051 1021 * @since 1.1.0 1052 1022 * 1053 * @uses BP_Activity_Activity::check_exists_by_content() {@link BP_Activity_Activity}1054 * @uses apply_filters() To call the 'bp_activity_check_exists_by_content' hook.1055 *1056 1023 * @param string $content The content to filter by. 1057 1024 * @return int|null The ID of the located activity item. Null if none is found. … … 1074 1041 * @since 1.0.0 1075 1042 * 1076 * @uses BP_Activity_Activity::get_last_updated() {@link BP_Activity_Activity}1077 * @uses apply_filters() To call the 'bp_activity_get_last_updated' hook.1078 *1079 1043 * @return string Date last updated. 1080 1044 */ … … 1095 1059 * 1096 1060 * @since 1.2.0 1097 *1098 * @uses BP_Activity_Activity::total_favorite_count() {@link BP_Activity_Activity}1099 1061 * 1100 1062 * @param int $user_id ID of the user whose favorite count is being requested. … … 1161 1123 * @since 1.2.0 1162 1124 * 1163 * @uses apply_filters() To call the 'bp_activity_get_meta' hook.1164 *1165 1125 * @param int $activity_id ID of the activity item whose metadata is being requested. 1166 1126 * @param string $meta_key Optional. If present, only the metadata matching … … 1239 1199 * 1240 1200 * @since 1.5.0 1241 *1242 * @uses is_user_logged_in()1243 * @uses bp_activity_delete()1244 * @uses bp_delete_user_meta()1245 * @uses do_action() To call the 'bp_activity_remove_data' hook.1246 * @uses do_action() To call the 'bp_activity_remove_all_user_data' hook.1247 1201 * 1248 1202 * @param int $user_id ID of the user whose activity is being deleted. … … 1672 1626 * @see BP_Activity_Activity::get() For more information on accepted arguments 1673 1627 * and the format of the returned value. 1674 * @uses wp_parse_args()1675 * @uses wp_cache_get()1676 * @uses wp_cache_set()1677 * @uses BP_Activity_Activity::get() {@link BP_Activity_Activity}1678 * @uses apply_filters_ref_array() To call the 'bp_activity_get' hook.1679 1628 * 1680 1629 * @param array|string $args See BP_Activity_Activity::get() for description. … … 1783 1732 * 1784 1733 * @see BP_Activity_Activity::get() For more information on accepted arguments. 1785 * @uses wp_parse_args()1786 * @uses apply_filters() To call the 'bp_activity_get_specific' hook.1787 * @uses BP_Activity_Activity::get() {@link BP_Activity_Activity}1788 1734 * 1789 1735 * @param array|string $args { … … 1837 1783 * 1838 1784 * @since 1.1.0 1839 *1840 * @uses wp_parse_args()1841 * @uses BP_Activity_Activity::save() {@link BP_Activity_Activity}1842 * @uses BP_Activity_Activity::rebuild_activity_comment_tree() {@link BP_Activity_Activity}1843 * @uses wp_cache_delete()1844 * @uses do_action() To call the 'bp_activity_add' hook.1845 1785 * 1846 1786 * @param array|string $args { … … 1950 1890 * @since 1.2.0 1951 1891 * 1952 * @uses wp_parse_args()1953 * @uses bp_is_user_inactive()1954 * @uses bp_core_get_userlink()1955 * @uses bp_activity_add()1956 * @uses apply_filters() To call the 'bp_activity_new_update_action' hook.1957 * @uses apply_filters() To call the 'bp_activity_new_update_content' hook.1958 * @uses apply_filters() To call the 'bp_activity_new_update_primary_link' hook.1959 * @uses bp_update_user_meta()1960 * @uses wp_filter_kses()1961 * @uses do_action() To call the 'bp_activity_posted_update' hook.1962 *1963 1892 * @param array|string $args { 1964 1893 * @type string $content The content of the activity update. … … 2563 2492 * @since 2.5.0 Add a new possible parameter $skip_notification for the array of arguments. 2564 2493 * Add the $primary_link parameter for the array of arguments. 2565 *2566 * @uses wp_parse_args()2567 * @uses bp_activity_add()2568 * @uses apply_filters() To call the 'bp_activity_comment_action' hook.2569 * @uses apply_filters() To call the 'bp_activity_comment_content' hook.2570 * @uses wp_cache_delete()2571 * @uses do_action() To call the 'bp_activity_comment_posted' hook.2572 2494 * 2573 2495 * @param array|string $args { … … 2711 2633 * 2712 2634 * @see BP_Activity_Activity::get() For more information on accepted arguments. 2713 * @uses wp_parse_args()2714 * @uses apply_filters() To call the 'bp_activity_get_activity_id' hook.2715 * @uses BP_Activity_Activity::save() {@link BP_Activity_Activity}2716 2635 * 2717 2636 * @param array|string $args See BP_Activity_Activity::get() for description. … … 2769 2688 * 2770 2689 * @see BP_Activity_Activity::get() For more information on accepted arguments. 2771 * @uses wp_parse_args()2772 * @uses bp_activity_adjust_mention_count()2773 * @uses BP_Activity_Activity::delete() {@link BP_Activity_Activity}2774 * @uses do_action() To call the 'bp_before_activity_delete' hook.2775 * @uses bp_get_user_meta()2776 * @uses bp_delete_user_meta()2777 * @uses do_action() To call the 'bp_activity_delete' hook.2778 * @uses do_action() To call the 'bp_activity_deleted_activities' hook.2779 * @uses wp_cache_delete()2780 2690 * 2781 2691 * @param array|string $args To delete specific activity items, use … … 2863 2773 * @deprecated 1.2.0 2864 2774 * 2865 * @uses wp_parse_args()2866 * @uses bp_activity_delete()2867 2775 * 2868 2776 * @param array|string $args See BP_Activity_Activity::get for a … … 2888 2796 * @since 1.1.0 2889 2797 * 2890 * @uses bp_activity_delete()2891 2798 * 2892 2799 * @param int $activity_id ID of the activity item to be deleted. … … 2905 2812 * @deprecated 1.2.0 2906 2813 * 2907 * @uses bp_activity_delete()2908 2814 * 2909 2815 * @param int $user_id The user id. … … 2930 2836 * @deprecated 1.2.0 2931 2837 * 2932 * @uses bp_activity_delete()2933 2838 * 2934 2839 * @param int $user_id The user id. … … 2948 2853 * @since 1.2.0 2949 2854 * 2950 * @uses apply_filters() To call the 'bp_activity_delete_comment_pre' hook.2951 * @uses bp_activity_delete_children()2952 * @uses bp_activity_delete()2953 * @uses BP_Activity_Activity::rebuild_activity_comment_tree() {@link BP_Activity_Activity}2954 * @uses do_action() To call the 'bp_activity_delete_comment' hook.2955 2855 * @todo Why is an activity id required? We could look this up. 2956 2856 * @todo Why do we encourage users to call this function directly? We could just … … 3018 2918 * @since 1.2.0 3019 2919 * 3020 * @uses BP_Activity_Activity::get_child_comments() {@link BP_Activity_Activity}3021 * @uses bp_activity_delete_children()3022 * @uses bp_activity_delete()3023 2920 * 3024 2921 * @param int $activity_id The ID of the "root" activity, ie the … … 3055 2952 * 3056 2953 * @since 1.2.0 3057 *3058 * @uses bp_get_root_domain()3059 * @uses bp_get_activity_root_slug()3060 * @uses apply_filters_ref_array() To call the 'bp_activity_get_permalink' hook.3061 2954 * 3062 2955 * @param int $activity_id The unique id of the activity object. … … 3111 3004 * @since 1.2.0 3112 3005 * 3113 * @uses BP_Activity_Activity::hide_all_for_user() {@link BP_Activity_Activity}3114 *3115 3006 * @param int $user_id The ID of the user whose activity is being hidden. 3116 3007 * @return bool True on success, false on failure. … … 3133 3024 * 3134 3025 * @since 1.2.0 3135 *3136 * @uses esc_attr()3137 * @uses apply_filters() To call the 'bp_activity_thumbnail_content_images' hook.3138 3026 * 3139 3027 * @param string $content The content of the activity item. … … 3495 3383 * @see bp_embed_activity_save_cache() 3496 3384 * 3497 * @uses add_filter() To attach 'bp_get_activity_id' to 'embed_post_id'.3498 * @uses add_filter() To attach 'bp_embed_activity_cache' to 'bp_embed_get_cache'.3499 * @uses add_action() To attach 'bp_embed_activity_save_cache' to 'bp_embed_update_cache'.3500 3385 */ 3501 3386 function bp_activity_embed() { … … 3520 3405 * @see bp_embed_activity_save_cache() 3521 3406 * 3522 * @uses add_filter() To attach 'bp_get_activity_comment_id' to 'embed_post_id'.3523 * @uses add_filter() To attach 'bp_embed_activity_cache' to 'bp_embed_get_cache'.3524 * @uses add_action() To attach 'bp_embed_activity_save_cache' to 'bp_embed_update_cache'.3525 3407 */ 3526 3408 function bp_activity_comment_embed() { … … 3537 3419 * 3538 3420 * @see BP_Embed 3539 * @uses add_filter() To attach create_function() to 'embed_post_id'.3540 * @uses add_filter() To attach 'bp_embed_activity_cache' to 'bp_embed_get_cache'.3541 * @uses add_action() To attach 'bp_embed_activity_save_cache' to 'bp_embed_update_cache'.3542 3421 * 3543 3422 * @param object $activity The activity that is being expanded. … … 3562 3441 * 3563 3442 * @see bp_activity_comment_embed() 3564 * @uses remove_filter() To remove 'bp_get_activity_comment_id' from 'embed_post_id'.3565 3443 */ 3566 3444 function bp_activity_comment_embed_after_recurse() { … … 3577 3455 * 3578 3456 * @see BP_Embed::parse_oembed() 3579 * @uses bp_activity_get_meta()3580 3457 * 3581 3458 * @param string $cache An empty string passed by BP_Embed::parse_oembed() for … … 3597 3474 * 3598 3475 * @see BP_Embed::parse_oembed() 3599 * @uses bp_activity_update_meta()3600 3476 * 3601 3477 * @param string $cache An empty string passed by BP_Embed::parse_oembed() for … … 3613 3489 * @since 2.0.0 3614 3490 * 3615 * @uses bp_is_activity_heartbeat_active() to check if heartbeat setting is on.3616 * @uses bp_is_activity_directory() to check if the current page is the activity3617 3491 * directory. 3618 * @uses bp_is_group_activity() to check if on a single group, the current page3619 3492 * is the group activities. 3620 3493 *
Note: See TracChangeset
for help on using the changeset viewer.