How to include styles and scripts on wordpress admin pages?

How do I add CSS and JavaScript to WordPress admin area?

In  “admin_enqueue_scripts” hook used to include scripts and css in admin area

add_action(‘admin_enqueue_scripts’, function()
wp_enqueue_style( ‘myscript’, PTS_CSS_URL.’/myscript.css’);

Leave a Reply

Your email address will not be published. Required fields are marked *