astra_blog_get_post_meta()
Prints HTML with meta information for the current post-date/time and author.
Description
Return
(mixed) Markup.
Source
File: inc/blog/blog.php
function astra_blog_get_post_meta() {
$enable_meta = apply_filters( 'astra_blog_post_meta_enabled', '__return_true' );
$post_meta = astra_get_option( 'blog-meta' );
$current_post_type = get_post_type();
$post_type_array = apply_filters( 'astra_blog_archive_post_type_meta', array( 'post' ) );
if ( in_array( $current_post_type, $post_type_array ) && is_array( $post_meta ) && $enable_meta ) {
$output_str = astra_get_post_meta( $post_meta );
if ( ! empty( $output_str ) ) {
echo apply_filters( 'astra_blog_post_meta', '<div class="entry-meta">' . $output_str . '</div>', $output_str ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
}
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 1.0 | Introduced. |