BP_Nouveau_Groups::includes()

Include needed files


Description Description


Source Source

File: bp-templates/bp-nouveau/includes/groups/loader.php

45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
protected function includes() {
    require $this->dir . 'functions.php';
    require $this->dir . 'classes.php';
    require $this->dir . 'template-tags.php';
 
    // Test suite requires the AJAX functions early.
    if ( function_exists( 'tests_add_filter' ) ) {
        require $this->dir . 'ajax.php';
 
    // Load AJAX code only on AJAX requests.
    } else {
        add_action( 'admin_init', function() {
            if ( defined( 'DOING_AJAX' ) && true === DOING_AJAX && 0 === strpos( $_REQUEST['action'], 'groups_' ) ) {
                require bp_nouveau()->groups->dir . 'ajax.php';
            }
        } );
    }
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.