Skip to content

Commit 9b64285

Browse files
committed
add user registration date as published
fix #276
1 parent 21cff7f commit 9b64285

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/author-json.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
'url' => \get_avatar_url( $author_id, array( 'size' => 120 ) ),
2020
);
2121

22+
$json->published = \gmdate( 'Y-m-d\TH:i:s\Z', \strtotime( \get_the_author_meta( 'registered', $author_id ) ) );
23+
2224
if ( \has_header_image() ) {
2325
$json->image = array(
2426
'type' => 'Image',

0 commit comments

Comments
 (0)