bp_core_confirmation_js

Load the JS for "Are you sure?" confirm links.

Description

bp_core_confirmation_js(); 

Usage

  1. if ( !function_exists( 'bp_core_confirmation_js' ) ) { 
  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_confirmation_js(); 
  7.  

Defined (1)

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

/bp-core/bp-core-cssjs.php  
  1. function bp_core_confirmation_js() { 
  2. if ( is_multisite() && ! bp_is_root_blog() ) { 
  3. return false; 
  4.  
  5. wp_enqueue_script( 'bp-confirm' ); 
  6.  
  7. wp_localize_script( 'bp-confirm', 'BP_Confirm', array( 
  8. 'are_you_sure' => __( 'Are you sure?', buddypress ),  
  9. ) ); 
  10.