diff --git a/inc/template-tags.php b/inc/template-tags.php
index 5e2cc65..978dd48 100644
--- a/inc/template-tags.php
+++ b/inc/template-tags.php
@@ -26,15 +26,23 @@ if ( ! function_exists ( 'understrap_posted_on' ) ) {
esc_attr( get_the_modified_date( 'c' ) ),
esc_html( get_the_modified_date() )
);
- $posted_on = sprintf(
- esc_html_x( 'Posted on %s', 'post date', 'understrap' ),
- '' . $time_string . ''
+ $posted_on = apply_filters(
+ 'understrap_posted_on', sprintf(
+ '%1$s %3$s',
+ esc_html_x( 'Posted on', 'post date', 'understrap' ),
+ esc_url( get_permalink() ),
+ apply_filters( 'understrap_posted_on_time', $time_string )
+ )
);
- $byline = sprintf(
- esc_html_x( 'by %s', 'post author', 'understrap' ),
- '' . esc_html( get_the_author() ) . ''
+ $byline = apply_filters(
+ 'understrap_posted_by', sprintf(
+ ' %1$s%3$s',
+ esc_html_x( 'by', 'post author', 'understrap' ),
+ esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
+ esc_html( get_the_author() )
+ )
);
- echo '' . $posted_on . ' ' . $byline . ''; // WPCS: XSS OK.
+ echo $posted_on . $byline; // WPCS: XSS OK.
}
}
@@ -119,4 +127,4 @@ if ( ! function_exists ( 'understrap_category_transient_flusher' ) ) {
// Like, beat it. Dig?
delete_transient( 'understrap_categories' );
}
-}
\ No newline at end of file
+}