generate_header_entry_meta_items

The generate_header_entry_meta_items allows us to re-order or add entry meta items.

Examples

If we want to move the list of categories above your content inline with and before your author and date , we can use this PHP snippet:

add_filter( 'generate_header_entry_meta_items', function() {
    return array(
        'categories',
        'date',
        'author',
    );
} );

Or we can change target single posts only:

add_filter( 'generate_header_entry_meta_items', function( $items ) {
    if ( is_single() ) {
        $items = array(
            'categories',
        );
    } return $items;
} );