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
if ( !function_exists( 'add_thickbox' ) ) { require_once ABSPATH . WPINC . '/general-template.php'; } // NOTICE! Understand what this does before running. $result = add_thickbox();
Defined (1)
The function is defined in the following location(s).
- /wp-includes/general-template.php
- function add_thickbox() {
- wp_enqueue_script( 'thickbox' );
- wp_enqueue_style( 'thickbox' );
- if ( is_network_admin() )
- }