BP_Blogs_Blog::__construct( int|null $id = null )

Constructor method.

Description

Parameters

$id

(int|null) (Optional) The ID of the blog.

Default value: null

Source

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

	public function __construct( $id = null ) {
		if ( !empty( $id ) ) {
			$this->id = (int) $id;
			$this->populate();
		}
	}

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.