Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
2 answers
5k views

How to use underscore.js in WordPress Admin

I am trying to use underscore in my WordPress Admin. This is what I have done: I enqueue a script in the very end of the page, like so: function load_admin_scripts() { wp_enqueue_script( "my-admin",...
rassoh's user avatar
  • 606
5 votes
1 answer
1k views

Can I add custom attributes while adding inline scripts?

I need to inject some underscore templates into admin screen without modifying the core. The templates look like this: <script type="text/template" id="template-123"> <div class="section ...
Minh Tri's user avatar
  • 3,419
0 votes
2 answers
2k views

Hook into backbone to add js to wp-admin -> media library?

I've enqueued a .js file on the "Media Library" page (upload.php). I need to hide and manipulate a few of the thumbnails on the page using JS only ( I'm not looking for workarounds ). The elements ...
Dorian Tudorache's user avatar