How to include styles and scripts on wordpress admin pages?

  • 1

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’);
});

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’); });

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’); });

One thought on “How to include styles and scripts on wordpress admin pages?

Leave a Reply

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