This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

_bp_core_moment_js_config_footer()

Print moment.js config in page footer.

Description

Will be removed once we set our minimum version of WP 4.5.

Source

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

function _bp_core_moment_js_config_footer() {
	if ( ! wp_script_is( 'bp-moment-locale' ) ) {
		return;
	}

	printf( '<script>%s</script>', bp_core_moment_js_config() );
}

Changelog

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