astra_post_author( string $output_filter = '' )
Function to get Author of Post
Description
Parameters
- $output_filter
-
(string) (Optional) Filter string.
Default value: ''
Return
(html) Markup.
Source
File: inc/blog/blog-config.php
function astra_post_author( $output_filter = '' ) { ob_start(); echo '<span '; echo astra_attr( 'post-meta-author', array( 'class' => 'posted-by vcard author', ) ); echo '>'; // Translators: Author Name. ?> <a title="<?php printf( esc_attr__( 'View all posts by %1$s', 'astra' ), get_the_author() ); ?>" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author" <?php echo astra_attr( 'author-url', array( 'class' => 'url fn n', ) ); ?> > <span <?php echo astra_attr( 'author-name', array( 'class' => 'author-name', ) ); ?> ><?php echo get_the_author(); ?></span> </a> </span> <?php $output = ob_get_clean(); return apply_filters( 'astra_post_author', $output, $output_filter ); }
Expand full source code Collapse full source code View on Trac