-
do_action( 'bp_blogs_remove_blog_for_user', $blog_id, $user_id )
Source Reference:
-
$user_id = (int)$user_id; do_action( 'bp_blogs_before_remove_blog_for_user', $blog_id, $user_id ); BP_Blogs_Blog::delete_blog_for_user( $blog_id, $user_id ); // Delete activity stream item bp_blogs_delete_activity( array( 'item_id' => $blog_id, 'component' => $bp->blogs->id, 'type' => 'new_blog' ) ); do_action( 'bp_blogs_remove_blog_for_user', $blog_id, $user_id ); } add_action( 'remove_user_from_blog', 'bp_blogs_remove_blog_for_user', 10, 2 ); function bp_blogs_remove_post( $post_id, $blog_id = 0, $user_id = 0 ) { global $wpdb, $bp; if ( empty( $wpdb->blogid ) ) return false; $post_id = (int)$post_id;
-
Hook: add_action: bp_blogs_remove_blog_for_user instances (2)
-
add_action( 'bp_blogs_remove_blog_for_user', 'bp_blogs_clear_blog_object_cache', 10, 2 )
Source Reference:
-
wp_cache_delete( 'bp_total_blogs_for_user_' . $user_id, 'bp' ); } function bp_blogs_format_clear_blog_cache( $recorded_blog_obj ) { bp_blogs_clear_blog_object_cache( false, $recorded_blog_obj->user_id ); wp_cache_delete( 'bp_total_blogs', 'bp' ); } // List actions to clear object caches on add_action( 'bp_blogs_remove_blog_for_user', 'bp_blogs_clear_blog_object_cache', 10, 2 ); add_action( 'bp_blogs_new_blog', 'bp_blogs_format_clear_blog_cache', 10, 2 ); // List actions to clear super cached pages on, if super cache is installed add_action( 'bp_blogs_remove_data_for_blog', 'bp_core_clear_cache' ); add_action( 'bp_blogs_remove_comment', 'bp_core_clear_cache' ); add_action( 'bp_blogs_remove_post', 'bp_core_clear_cache' ); add_action( 'bp_blogs_remove_blog_for_user', 'bp_core_clear_cache' ); add_action( 'bp_blogs_remove_blog', 'bp_core_clear_cache' ); add_action( 'bp_blogs_new_blog_comment', 'bp_core_clear_cache' ); add_action( 'bp_blogs_new_blog_post', 'bp_core_clear_cache' );
-
Hook: add_action: bp_blogs_remove_blog_for_user instances (2)
-
add_action( 'bp_blogs_remove_blog_for_user', 'bp_core_clear_cache' )
Source Reference:
-
// List actions to clear object caches on add_action( 'bp_blogs_remove_blog_for_user', 'bp_blogs_clear_blog_object_cache', 10, 2 ); add_action( 'bp_blogs_new_blog', 'bp_blogs_format_clear_blog_cache', 10, 2 ); // List actions to clear super cached pages on, if super cache is installed add_action( 'bp_blogs_remove_data_for_blog', 'bp_core_clear_cache' );
-