bp_document_maybe_define_constant( string $name, mixed $value )
Define a constant if it is not already defined.
Description
Parameters
- $name
-
(Required) Constant name.
- $value
-
(Required) Value.
Source
File: bp-document/bp-document-filters.php
function bp_document_maybe_define_constant( $name, $value ) {
if ( ! defined( $name ) ) {
define( $name, $value );
}
}
Changelog
| Version | Description |
|---|---|
| BuddyBoss 1.4.1 | 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.