*/ public function get_metadata(): array { $this->build_basic(); $this->build_headline(); $this->build_url(); return $this->metadata; } /** * Populates the `headline` field in the metadata object. * * @since 3.4.0 */ private function build_headline(): void { $tag = single_tag_title( '', false ); if ( '' === $tag ) { $tag = single_term_title( '', false ); } /* translators: %s: Tag name */ $this->metadata['headline'] = $this->clean_value( sprintf( __( 'Tagged - %s', 'wp-parsely' ), $tag ) ); } }