Changeset 13890 for trunk/src/bp-activity/bp-activity-functions.php
- Timestamp:
- 06/02/2024 01:06:10 AM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-functions.php
r13878 r13890 1082 1082 * @param int $activity_id ID of the activity item being favorited. 1083 1083 * @param int $user_id ID of the user favoriting the activity item. 1084 * @return bool True on success, false on failure.1084 * @return bool 1085 1085 */ 1086 1086 function bp_activity_add_user_favorite( $activity_id, $user_id = 0 ) { … … 1163 1163 * @param int $activity_id ID of the activity item being unfavorited. 1164 1164 * @param int $user_id ID of the user unfavoriting the activity item. 1165 * @return bool True on success, false on failure.1165 * @return bool 1166 1166 */ 1167 1167 function bp_activity_remove_user_favorite( $activity_id, $user_id = 0 ) { … … 1297 1297 * only delete matching metadata entries for the specified 1298 1298 * activity item. Default: false. 1299 * @return bool True on success, false on failure.1299 * @return bool 1300 1300 */ 1301 1301 function bp_activity_delete_meta( $activity_id, $meta_key = '', $meta_value = '', $delete_all = false ) { … … 2465 2465 * @param int $post_id ID of the post being unpublished. 2466 2466 * @param WP_Post|null $post Post object. 2467 * @return bool True on success, false on failure.2467 * @return bool 2468 2468 */ 2469 2469 function bp_activity_post_type_unpublish( $post_id = 0, $post = null ) { … … 2707 2707 * @param int $comment_id ID of the comment. 2708 2708 * @param object|null $activity_post_object The post type tracking args object. 2709 * @return bool True on success. False on error.2709 * @return bool 2710 2710 */ 2711 2711 function bp_activity_post_type_remove_comment( $comment_id = 0, $activity_post_object = null ) { … … 2713 2713 $comment = get_comment( $comment_id ); 2714 2714 if ( ! $comment ) { 2715 return ;2715 return false; 2716 2716 } 2717 2717 2718 2718 $post_type = get_post_type( $comment->comment_post_ID ); 2719 2719 if ( ! $post_type ) { 2720 return ;2720 return false; 2721 2721 } 2722 2722 … … 3004 3004 * the same as BP_Activity_Activity::get(). 3005 3005 * See that method for a description. 3006 * @return bool True on success, false on failure.3006 * @return bool 3007 3007 */ 3008 3008 function bp_activity_delete( $args = '' ) { … … 3088 3088 * @param array|string $args See BP_Activity_Activity::get for a 3089 3089 * description of accepted arguments. 3090 * @return bool True on success, false on failure.3090 * @return bool 3091 3091 */ 3092 3092 function bp_activity_delete_by_item_id( $args = '' ) { … … 3113 3113 * 3114 3114 * @param int $activity_id ID of the activity item to be deleted. 3115 * @return bool True on success, false on failure.3115 * @return bool 3116 3116 */ 3117 3117 function bp_activity_delete_by_activity_id( $activity_id ) { … … 3132 3132 * @param string $component The activity component. 3133 3133 * @param string $type The activity type. 3134 * @return bool True on success, false on failure.3134 * @return bool 3135 3135 */ 3136 3136 function bp_activity_delete_by_content( $user_id, $content, $component, $type ) { … … 3154 3154 * @param int $user_id The user id. 3155 3155 * @param string $component The activity component. 3156 * @return bool True on success, false on failure.3156 * @return bool 3157 3157 */ 3158 3158 function bp_activity_delete_for_user_by_component( $user_id, $component ) { … … 3176 3176 * oldest ancestor. 3177 3177 * @param int $comment_id The ID of the comment to be deleted. 3178 * @return bool True on success, false on failure.3178 * @return bool 3179 3179 */ 3180 3180 function bp_activity_delete_comment( $activity_id, $comment_id ) { … … 3340 3340 * @param BP_Activity_Activity $activity Activity object. 3341 3341 * @param integer $user_id User ID. 3342 * @return bool ean True on success, false on failure.3342 * @return bool 3343 3343 */ 3344 3344 function bp_activity_user_can_read( $activity, $user_id = 0 ) { … … 3401 3401 * 3402 3402 * @param int $user_id The ID of the user whose activity is being hidden. 3403 * @return bool True on success, false on failure.3403 * @return bool 3404 3404 */ 3405 3405 function bp_activity_hide_user_activity( $user_id ) {
Note: See TracChangeset
for help on using the changeset viewer.