Title: Want to change core code without changing core code.
Last modified: August 21, 2016

---

# Want to change core code without changing core code.

 *  [3rdaxis](https://wordpress.org/support/users/3rdaxis/)
 * (@3rdaxis)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/want-to-change-core-code-without-changing-core-code/)
 * In wp-admin/includes/media.php
    There resides these lines.
 *     ```
       if ( ! empty( $meta['title'] ) )
       $title = $meta['title'];
       ```
   
 * I want that changed to:
 *     ```
       if ( ! empty( $meta['file'] ) )
       $file = $file['file'];
       ```
   
 * I know this works for what im doing, but would like some way to evoke this without
   changing the core file. Is there a way to do this?
 * Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Rod Whiteley](https://wordpress.org/support/users/rod-whiteley/)
 * (@rod-whiteley)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/want-to-change-core-code-without-changing-core-code/#post-4248729)
 * Would the `wp_generate_attachment_metadata` filter do?
 *  Thread Starter [3rdaxis](https://wordpress.org/support/users/3rdaxis/)
 * (@3rdaxis)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/want-to-change-core-code-without-changing-core-code/#post-4248740)
 * I do not know nor do i know exactly what code to use or where to place it. i 
   know that filters are often in functions, but I really would need some code and
   know where to place it.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Want to change core code without changing core code.’ is closed to new
replies.

## Tags

 * [change](https://wordpress.org/support/topic-tag/change/)
 * [code](https://wordpress.org/support/topic-tag/code/)
 * [media](https://wordpress.org/support/topic-tag/media/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 2 replies
 * 2 participants
 * Last reply from: [3rdaxis](https://wordpress.org/support/users/3rdaxis/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/want-to-change-core-code-without-changing-core-code/#post-4248740)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
