BP_Core_Notification::__construct( int $id )

Constructor

Description

Parameters

$id

(Required) ID for the notification.

Source

File: bp-core/classes/class-bp-core-notification.php

	public function __construct( $id = 0 ) {
		if ( !empty( $id ) ) {
			$this->id = $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.