BP_Nouveau::theme_compat_wrapper( string $retval )

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

Description Description

See also See also

Top ↑

Parameters Parameters


(string) (Required) Current template part contents.

Top ↑

Return Return


Top ↑

Source Source

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

	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.

Top ↑

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.