Title: Add code without using a hook
Last modified: February 26, 2019

---

# Add code without using a hook

 *  Resolved [ch3](https://wordpress.org/support/users/ch3/)
 * (@ch3)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/add-code-without-using-a-hook/)
 * I would like to add some additional options at the bottom of the ‘Edit Gallery’
   UI `(media-template.php l.781)`, but I can’t find a hook for that.
    Is there 
   another way to add code there without touching the WordPress’ core file? What’s
   usually the practice for extending WordPress in places where there are no hooks?

The topic ‘Add code without using a hook’ is closed to new replies.

## Tags

 * [hook](https://wordpress.org/support/topic-tag/hook/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 0 replies
 * 1 participant
 * Last reply from: [ch3](https://wordpress.org/support/users/ch3/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/add-code-without-using-a-hook/)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
