WordPress.org

Make WordPress Core

Ticket #19570: post-format-meta-filter.diff

File post-format-meta-filter.diff, 417 bytes (added by alexkingorg, 8 years ago)

Add a filter to the returned meta values

  • wp-includes/post-formats.php

     
    9494        foreach ( $values as $key => $value )
    9595                $values[$key] = get_post_meta( $post_id, '_wp_format_' . $key, true );
    9696
    97         return $values;
     97        return apply_filters('post_format_meta', $values);
    9898}
    9999
    100100/**