add_thickbox

Enqueues the default ThickBox js and css.

Description

add_thickbox(); 

If any of the settings need to be changed, this can be done with another js file similar to media-upload.js. That file should require array('thickbox') to ensure it is loaded after.


Usage

  1. if ( !function_exists( 'add_thickbox' ) ) { 
  2. require_once ABSPATH . WPINC . '/general-template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = add_thickbox(); 
  7.  

Defined (1)

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

/wp-includes/general-template.php  
  1. function add_thickbox() { 
  2. wp_enqueue_script( 'thickbox' ); 
  3. wp_enqueue_style( 'thickbox' ); 
  4.  
  5. if ( is_network_admin() )