Wp 管理画面 js 読み込み

function.php

/*================================================
管理画面用 js 読み込み
================================================*/
function admin_js( ) {
    $_current_theme_dir = get_template_directory_uri();
    $_custom_js = '<script type="text/javascript" src="'. $_current_theme_dir. '/dist/javascripts/admin.js"></script>';
    echo $_custom_js . "n";
}
add_action('admin_head', 'admin_js');
PAGE TOP