Halaman spesifik admin_enqueue_scripts

function my_enqueue($hook) {
if ( 'bookings' != $hook ) {
    return;
}
if ( is_admin() ) {
wp_enqueue_style('datatablecss','//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css' );
wp_enqueue_style('datatablecss2','//cdn.datatables.net/1.10.16/css/dataTables.bootstrap.min.css' );
wp_enqueue_script('datatablejs','//cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js',array(),'1.0',false);
wp_enqueue_script('datatablejs2','//cdn.datatables.net/1.10.16/js/dataTables.bootstrap.min.js',array(),'1.0',false);}
add_action( 'wp_enqueue_scripts', 'my_enqueue' );
}
Developers