bbp_add_error( string $code = '', string $message = '', string $data = '' )

Adds an error message to later be output in the theme

Description

See also

Parameters

$code

(Optional) Unique code for the error message

Default value: ''

$message

(Optional) Translated error message

Default value: ''

$data

(Optional) Any additional data passed with the error message

Default value: ''

Source

File: bp-forums/core/functions.php

function bbp_add_error( $code = '', $message = '', $data = '' ) {
	bbpress()->errors->add( $code, $message, $data );
}

Changelog

Changelog
Version Description
bbPress (r3381) Introduced.

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.