BBP_Admin::output_notices()
Output all admin area notices
Description Description
Source Source
File: includes/admin/classes/class-bbp-admin.php
public function output_notices() {
// Bail if no notices
if ( empty( $this->notices ) || ! is_array( $this->notices ) ) {
return;
}
// Start an output buffer
ob_start();
// Loop through notices, and add them to buffer
foreach ( $this->notices as $notice ) {
echo $notice;
}
// Output the current buffer
echo ob_get_clean();
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |