• 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)
  • Would the wp_generate_attachment_metadata filter do?

    Thread Starter 3rdaxis

    (@3rdaxis)

    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.