add user registration date as published

fix #276
This commit is contained in:
Matthias Pfefferle 2023-02-20 18:42:00 +01:00
parent 21cff7f24b
commit 9b642858f6

View file

@ -19,6 +19,8 @@ $json->icon = array(
'url' => \get_avatar_url( $author_id, array( 'size' => 120 ) ),
);
$json->published = \gmdate( 'Y-m-d\TH:i:s\Z', \strtotime( \get_the_author_meta( 'registered', $author_id ) ) );
if ( \has_header_image() ) {
$json->image = array(
'type' => 'Image',