BP_Activity_Activity::__construct( int|bool $id = false )

Constructor method.


Parameters Parameters

$id

(int|bool) (Optional) The ID of a specific activity item.

Default value: false


Source Source

File: bp-activity/classes/class-bp-activity-activity.php

	public function __construct( $id = false ) {
		// Instantiate errors object.
		$this->errors = new WP_Error;

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


Top ↑

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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