BP_Nouveau::theme_compat_wrapper( string $retval )

Add our special ‘buddypress’ div wrapper to the theme compat template part.

Description

See also

Parameters

$retval

(Required) Current template part contents.

Return

(string)

Source

File: bp-templates/bp-nouveau/buddypress-functions.php

744
745
746
747
748
749
750
751
752
753
754
755
756
public function theme_compat_wrapper( $retval ) {
    if ( false !== strpos( $retval, '<div id="buddypress"' ) ) {
        return $retval;
    }
 
    // Add our 'buddypress' div wrapper.
    return sprintf(
        '<div id="buddypress" class="%1$s">%2$s</div><!-- #buddypress -->%3$s',
        esc_attr( bp_nouveau_get_container_classes() ),
        $retval// Constructed HTML.
        "\n"
    );
}

Changelog

Changelog
Version Description
BuddyPress 3.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.