get_username() ); } public function get_username() { return \esc_html( \get_option( 'activitypub_blog_user_identifier', 'feed' ) ); } public function get_avatar() { return \esc_url( \get_site_icon_url( 120 ) ); } public function get_header_image() { if ( \has_header_image() ) { return esc_url( \get_header_image() ); } return null; } public function get_published() { $first_post = new WP_Query( array( 'orderby' => 'date', 'order' => 'ASC', 'number' => 1, ) ); if ( ! empty( $first_post->posts[0] ) ) { $time = \strtotime( $first_post->posts[0]->post_date_gmt ); } else { $time = \time(); } return \gmdate( 'Y-m-d\TH:i:s\Z', $time ); } public function get_public_key() { return ''; } }