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

Constructor method.


Description Description


Parameters Parameters

$id

(Optional) The ID of a specific activity item.

Default value: false


Top ↑

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.