bp_get_theme_package_id( string $default = 'legacy' )

Get the current theme package ID.


Description Description


Parameters Parameters

$default

(Optional) Fallback value if not found in the database. Default: 'legacy'.

Default value: 'legacy'


Top ↑

Return Return

(string) ID of the theme package.


Top ↑

Source Source

File: bp-core/bp-core-options.php

function bp_get_theme_package_id( $default = 'legacy' ) {

	/**
	 * Filters the current theme package ID.
	 *
	 * @since 1.7.0
	 *
	 * @param string $value The current theme package ID.
	 */
	return apply_filters( 'bp_get_theme_package_id', bp_get_option( '_bp_theme_package_id', $default ) );
}

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.