WordPress.org

Make WordPress Core

Ticket #24059: all-post-formats-filter.diff

File all-post-formats-filter.diff, 509 bytes (added by tlovett1, 2 years ago)

Adds new all_post_formats filter

  • wp-admin/edit-form-advanced.php

     
    172172                        'description' => __( 'An aside is a quick thought or side topic. Use the editor to compose one.' ) 
    173173                ) 
    174174        ); 
     175 
     176        $all_post_formats = apply_filters( 'all_post_formats', $all_post_formats ); 
     177 
    175178        $post_format_options = ''; 
    176179 
    177180        foreach ( $all_post_formats as $slug => $attr ) {