函数原型
add_thickbox()
函数描述
Enqueues the default ThickBox js and css.
是否弃用
未弃用
函数参数
无
函数返回值
无
函数位置
File: wp-includes/general-template.php.
函数源码
function add_thickbox() {
wp_enqueue_script( 'thickbox' );
wp_enqueue_style( 'thickbox' );
if ( is_network_admin() ) {
add_action( 'admin_head', '_thickbox_path_admin_subfolder' );
}
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |

