Title: wp_print_media_templates function problem
Last modified: August 22, 2016

---

# wp_print_media_templates function problem

 *  [Shmoo](https://wordpress.org/support/users/macpresss/)
 * (@macpresss)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/wp_print_media_templates-function-problem/)
 * Since WordPress 4.1.0 the **wp_print_media_templates()** function doesn’t work
   anymore if you first remove the action and later add the same function again,
   only with a different name. ( for testing )
 *     ```
       remove_action( 'admin_footer', 'wp_print_media_templates' );
       add_action( 'admin_footer', 'my_print_media_templates' );
   
       function my_print_media_templates() {
   
       ...... 100% the same code as original for testing .....
   
       }
       ```
   
 * Looks like it breaks the Javascripts or something because there is no drop down
   functionality inside the backend, also the screen options panel at the top doesn’t
   work anymore.

Viewing 1 replies (of 1 total)

 *  [Ryan Sechrest](https://wordpress.org/support/users/sovereign/)
 * (@sovereign)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/wp_print_media_templates-function-problem/#post-5599177)
 * What are you trying to accomplish?

Viewing 1 replies (of 1 total)

The topic ‘wp_print_media_templates function problem’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 2 participants
 * Last reply from: [Ryan Sechrest](https://wordpress.org/support/users/sovereign/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/wp_print_media_templates-function-problem/#post-5599177)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
