'WebSite', '@id' => $homeUrl . '#website', 'url' => $homeUrl, 'name' => aioseo()->helpers->decodeHtmlEntities( get_bloginfo( 'name' ) ), 'description' => aioseo()->helpers->decodeHtmlEntities( get_bloginfo( 'description' ) ), 'inLanguage' => aioseo()->helpers->currentLanguageCodeBCP47(), 'publisher' => [ '@id' => $homeUrl . '#' . aioseo()->options->searchAppearance->global->schema->siteRepresents ] ]; if ( is_front_page() && aioseo()->options->searchAppearance->advanced->sitelinks ) { $data['potentialAction'] = [ '@type' => 'SearchAction', 'target' => [ '@type' => 'EntryPoint', 'urlTemplate' => $homeUrl . '?s={search_term_string}' ], 'query-input' => 'required name=search_term_string', ]; } return $data; } }