Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Add theme support for post formats #295

Merged
merged 9 commits into from
Sep 27, 2024
18 changes: 18 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,24 @@
* @since Twenty Twenty-Five 1.0
*/

/**
* Add theme support for post formats.
*/
if ( ! function_exists( 'twentytwentyfive_post_format_setup' ) ) :
/**
* Add theme support for post formats.
*
* @since Twenty Twenty-Five 1.0
* @return void
*/
function twentytwentyfive_post_format_setup() {
add_theme_support( 'post-formats', array( 'audio', 'gallery', 'image', 'link', 'quote', 'video' ) );
}
endif;

add_action( 'after_setup_theme', 'twentytwentyfive_post_format_setup' );


/**
* Enqueue editor-style.css in the editors.
*/
Expand Down
Loading