bp_dtheme_add_blog_comments_js

Add the JS needed for blog comment replies.

Description

bp_dtheme_add_blog_comments_js(); 

Usage

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

Defined (1)

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

/themes/p2-buddypress/functions.php  
  1. function bp_dtheme_add_blog_comments_js() { 
  2. if ( is_singular() ) wp_enqueue_script( 'comment-reply' );