Filter Schema markup for Person

Need help with this?
Purchase All in One SEO Pack Pro to get dedicated support from us.

Buy Now

All in One SEO Pack outputs Schema markup for Person that appears on Posts.  This markup provides information about the post author such as name, social media profiles and profile photo (avatar).

This filter can be used to add more information to the Schema markup.  Care should be taken to only add accepted properties as per the Schema.org documentation.  The example below adds the property jobTitle:

function aioseop_modify_schema_person( $data ) {
        $data['jobTitle'] = 'Job title goes here';

        return $data;
}
add_filter( 'aioseop_schema_class_data_AIOSEOP_Graph_Person', 'aioseop_modify_schema_person' );

Filter added in All in One SEO Pack v3.3.

For instructions on how to use this code, please refer to our FAQ here.

  • Was this helpful ?
  • YesNo
[i]
[i]
Skip to toolbar