BP_Blogs_Blog::delete_blog_for_all( int $blog_id )

Delete the record of a given blog for all users.

Parameters Parameters


(int) (Required) The blog being removed from all users.

Top ↑

Return Return

(int|bool) Number of rows deleted on success, false on failure.

Source Source

File: bp-blogs/classes/class-bp-blogs-blog.php

	public static function delete_blog_for_all( $blog_id ) {
		global $wpdb;

		bp_blogs_delete_blogmeta( $blog_id );

		$bp = buddypress();

		return $wpdb->query( $wpdb->prepare( "DELETE FROM {$bp->blogs->table_name} WHERE blog_id = %d", $blog_id ) );

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.