[WordPress]管理画面でjs,cssを読み込む
function add_admin_style() { wp_enqueue_script('admin_script', get_template_directory_uri().'/scripts/admin.js'); wp_enqueue_style('admin_style', get_template_directory_uri().'/style/admin.css'); } add_action('admin_enqueue_scripts', 'add_admin_style');