_bbp_filter_locale( string $locale = '',  $domain = '' )

Deprecated locale filter

Description

Parameters

$locale

(string) (Optional)

Default value: ''

Return

(string) $domain

Source

File: bp-forums/core/filters.php

function _bbp_filter_locale( $locale = '', $domain = '' ) {

	// Only apply to the Forums text-domain
	if ( bbpress()->domain !== $domain ) {
		return $locale;
	}

	return apply_filters( 'bbpress_locale', $locale, $domain );
}

Changelog

Changelog
Version Description
bbPress (r4213) 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.