Enque script for plugin (backend)

function load_admin_style()
{
wp_enqueue_style( ‘admin_css’, ATTENDANCE_URL . ‘css/mycustomestyle.css’, false );
wp_enqueue_style( ‘datepicker1’, ATTENDANCE_URL . ‘datepicker/jquery-ui.css’, array());
wp_enqueue_script( ‘datepicker2’, ATTENDANCE_URL . ‘datepicker/jquery-1.10.2.js’, array());
wp_enqueue_script( ‘datepicker3’, ATTENDANCE_URL . ‘datepicker/jquery-ui.js’, array());
wp_enqueue_script( ‘mycustomscript’, ATTENDANCE_URL . ‘js/mycustomescript.js’, array());
}
add_action( ‘admin_enqueue_scripts’, ‘load_admin_style’ );

Advertisements

Tagged: ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: