回答:
という関数がありwp_script_is( $handle, $list )ます。$list次のいずれかになります。
wp_register_script()wp_enqueue_script()すべて同じですwp_style_is()。
$GLOBALS['wp_scripts']->registeredスクリプトを確認してください。
例
function is_enqueued_script( $script )
{
return isset( $GLOBALS['wp_scripts']->registered[ $script ] );
}
print (int) is_enqueued_script( 'l10n' );
$GLOBALS['wp_styles']->registered 同じように機能します。