Dependencies::appendDependencyChecker()

Check if the required dependencies are all init

Description

Source

File: bp-integrations/learndash/core/Dependencies.php

42
43
44
45
46
47
48
49
50
public function appendDependencyChecker()
{
    global $wp_filter;
 
    $callbackKeys = array_keys($wp_filter['init']->callbacks);
    $lastCallbackPriority = $callbackKeys[count($callbackKeys) - 1];
 
    add_action('init', [$this, 'dependencyChecker'], $lastCallbackPriority);
}

Changelog

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.