Requirements::__construct()
Constructor
Description
Source
File: bp-integrations/learndash/core/Requirements.php
public function __construct()
{
$this->requirements = [
'bp_group_component' => [
'callback' => ['bp_is_active', ['groups']],
'error' => sprintf(
__('BuddyBoss Platform component %s needs to be enabled.', 'buddyboss'),
'<b>' . __('Social Groups', 'buddyboss') . '</b>'
)
]
];
add_action('bp_ld_sync/depencencies_loaded', [$this, 'checkForRequirements']);
}
Changelog
| Version | Description |
|---|---|
| BuddyBoss 1.0.0 | 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.