---
title: Filter ProfilePage schema data
url: "https://www.seopress.org/support/hooks/filter-profilepage-schema-data/"
lang: en-US
updated: 2026-10-21
hook_name: seopress_pro_schema_profilepage_data
required_version: 9.5
---

# Filter ProfilePage schema data

- **Hook name:** `seopress_pro_schema_profilepage_data`
- **Required version:** 9.5

```php
<?php
/**
 * Filter the data used to build the ProfilePage schema of an author archive.
 *
 * @param array    $profile_data Keys: name, alternateName, identifier, description, image, url, sameAs, postCount, dateCreated, dateModified.
 * @param \WP_User $author       The author object.
 *
 * @return array
 */
function sp_profilepage_data( $profile_data, $author ) {
	$profile_data['sameAs'][] = 'https://example.com/team/' . $author->user_nicename;

	return $profile_data;
}
add_filter( 'seopress_pro_schema_profilepage_data', 'sp_profilepage_data', 10, 2 );
```

Source: [https://gist.github.com/wp-seopress/d08ba314383711e058c3ec70561d6730](https://gist.github.com/wp-seopress/d08ba314383711e058c3ec70561d6730)


The Person main entity is rebuilt from the filtered data, so keep url as a non-empty absolute URL.
