frontend/web/blog/wp-content/plugins/wordpress-seo/frontend/schema/class-schema-webpage.php
/**
	 * Adds an author property to the $data if the WebPage is not represented.
	 *
	 * @param array   $data The WebPage schema.
	 * @param WP_Post $post The post the context is representing.
	 *
	 * @return array The WebPage schema.
	 */
Adds an author property to the $data if the WebPage is not represented.
@param array   $data The WebPage schema.
@param WP_Post $post The post the context is representing.

@return array The WebPage schema.
Adds an author property to the $data if the WebPage is not represented . @param array $data The WebPage schema . @param WP_Post $post The post the context is representing . @return array The WebPage schema .
public function add_author( $data, $post ) {
		if ( $this->context->site_represents === false ) {
			$data['author'] = [ '@id' => WPSEO_Schema_Utils::get_user_schema_id( $post->post_author, $this->context ) ];
		}
		return $data;
	}
public function add_author ( $ data , $ post ) { if ( $ this -> context -> site_represents === false ) { $ data [ 'author' ] = [ '@id' => WPSEO_Schema_Utils :: get_user_schema_id ( $ post -> post_author , $ this -> context ) ] ; } return $ data ; }
Adds an author property to the $data if the WebPage is not represented.
Adds an author property to the $data if the WebPage is not represented .