有没有办法在wwp_enqueue_script()中在Wordpress的”定制器面板”中使用它?就像是 :
function myTheme_enqueue_script_admin() {
wp_enqueue_script( 'custom-admin-js', get_template_directory_uri() . '/js/admin.min.js', array(), '1.0', true );
}
add_action('--ENQUEUE SCRIPT TO CUSTOMIZER--', 'myTheme_enqueue_script_admin');
谢谢!
#1
是的, 只需使用此钩子
add_action( 'admin_enqueue_scripts', 'func' );
从Codex阅读更多
来源:
https://www.srcmini02.com/63000.html
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_37715.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57