我已经阅读并使用
wp_enqueue_script
并将我的脚本设置为依赖于jQuery,但当脚本来自插件时,我如何重新排序jQuery?
<script type="text/javascript">
function ytc_init_MPAU() {jQuery(\'.ytc-lightbox\').magnificPopupAU({disableOn:320,type:\'iframe\',mainClass:\'ytc-mfp-lightbox\',removalDelay:160,preloader:false,fixedContentPos:false});}jQuery(window).on(\'load\',function(){ytc_init_MPAU();});jQuery(document).ajaxComplete(function(){ytc_init_MPAU();});
</script>
<link rel=\'stylesheet\' id=\'dashicons-css\' href=\'http://elinfluencer.dosdev.com/wp-includes/css/dashicons.min.css?ver=4.8\' type=\'text/css\' media=\'all\'/>
<link rel=\'stylesheet\' id=\'thickbox-css\' href=\'http://elinfluencer.dosdev.com/wp-includes/js/thickbox/thickbox.css?ver=4.8\' type=\'text/css\' media=\'all\'/>
<script type=\'text/javascript\' src=\'https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js?ver=1.12.4\'></script>