我想摆脱完整的thickbox css js和加载gif。有谁能给我一个正确的方法,通过函数来摆脱它吗。php?
干杯,亚历克斯
我想摆脱完整的thickbox css js和加载gif。有谁能给我一个正确的方法,通过函数来摆脱它吗。php?
干杯,亚历克斯
我猜只有前端,对吗?
function wpse71503_init() {
if (!is_admin()) {
wp_deregister_style(\'thickbox\');
wp_deregister_script(\'thickbox\');
}
}
add_action(\'init\', \'wpse71503_init\');
你自己安装插件了吗?然后从WordPress仪表板的插件部分停用和/或删除它。
我有一个自定义的帖子类型,其中有一个元框文本输入区域,当从模式窗口单击链接时,我想从thickbox中插入一个短代码。现在使用下面的代码,单击“插入”按钮时,它只会关闭模式窗口。请告诉我哪里出了问题。我的厚盒子开得很好。呈现的页面具有如下链接:echo \'<td><a href=\"#\" style=\"display:block\" class=\"button insertdownload\" id=\"download-\'.$d->id.\'\">Insert&l