您可以从全局$wp_scripts
:
function wpse124959_wp_scripts_filter() {
global $wp_scripts;
foreach ($wp_scripts->registered as $reg) {
if ( preg_match(\'/^jquery-ui/\', $reg->handle ) )
$script_hs[ $reg->handle ] = $reg->src;
}
print_r( $script_hs );
}
add_filter( \'wp_head\', \'wpse124959_wp_scripts_filter\' );
从理论上讲,这可以用于将他们排队,或者构建@rarst建议的别名。