_bp_core_moment_js_config_footer

Print moment.js config in page footer.

Description

_bp_core_moment_js_config_footer(); 

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


Usage

  1. if ( !function_exists( '_bp_core_moment_js_config_footer' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/bp-core-cssjs.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = _bp_core_moment_js_config_footer(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-core/bp-core-cssjs.php  
  1. function _bp_core_moment_js_config_footer() { 
  2. if ( ! wp_script_is( 'bp-moment-locale' ) ) { 
  3. return; 
  4.  
  5. printf( '<script>%s</script>', bp_core_moment_js_config() );