astra_post_categories( string $filter_name, string $style_type, bool $post_meta )
Function to get Categories applied of Post
Description
Parameters
- $filter_name
-
(string) (Required) Filter name.
- $style_type
-
(string) (Required) Style type slug.
- $post_meta
-
(bool) (Required) Post meta.
Return
(mixed) Markup.
Source
File: inc/blog/blog-config.php
function astra_post_categories( $output_filter = '' ) { $output = ''; /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( __( ', ', 'astra' ) ); if ( $categories_list ) { $output .= '<span class="cat-links">' . $categories_list . '</span>'; } return apply_filters( 'astra_post_categories', $output, $output_filter ); }
Expand full source code Collapse full source code View on Trac