bp_groupblog_add_js

Bp_groupblog_add_js().

Description

bp_groupblog_add_js(); 

Usage

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

Defined (1)

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

/bp-groupblog-cssjs.php  
  1. function bp_groupblog_add_js() { 
  2. if ( bp_is_groups_component() && bp_is_action_variable( 'group-blog' ) ) { 
  3. if ( file_exists( get_stylesheet_directory() . '/groupblog/js/general.js' ) ) 
  4. wp_enqueue_script( 'bp-groupblog-js', get_stylesheet_directory_uri() . '/groupblog/js/general.js', array( 'jquery' ) ); 
  5. else 
  6. wp_enqueue_script( 'bp-groupblog-js', plugins_url() . '/bp-groupblog/groupblog/js/general.js', array( 'jquery' ) );