bp_get_theme_compat_dir()

Get the absolute path of the theme package being used.


Description Description

Or set manually. Tricky theme authors can override the default and include their own BuddyPress compatibility layers for their themes.


Return Return

(string) The absolute path of the theme package currently in use.


Top ↑

Source Source

File: bp-core/bp-core-theme-compatibility.php

function bp_get_theme_compat_dir() {

	/**
	 * Filters the absolute path of the theme package being used.
	 *
	 * @since 1.7.0
	 *
	 * @param string $dir The absolute path of the theme package in use.
	 */
	return apply_filters( 'bp_get_theme_compat_dir', buddypress()->theme_compat->theme->dir );
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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