astra_get_post_format( string $post_format_override = '' )
Get post format
Description
Parameters
- $post_format_override
-
(string) (Optional) Override post formate.
Default value: ''
Return
(string) Return post format.
Source
File: inc/core/common-functions.php
function astra_get_post_format( $post_format_override = '' ) { if ( ( is_home() ) || is_archive() ) { $post_format = 'blog'; } else { $post_format = get_post_format(); } return apply_filters( 'astra_get_post_format', $post_format, $post_format_override ); }
Expand full source code Collapse full source code View on Trac