aioseo_schema_breadcrumbs_home

Purpose

This filter can be used to filter the schema breadcrumb homepage name.

Arguments (1)

  1. $name (string) – The breadcrumb homepage name. Defaults to “Home” (localized).

Example code snippet

The code snippet below is just an example of how this filter can be used. In the example below, the schema breadcrumb homepage name is changed.

add_filter( 'aioseo_schema_breadcrumbs_home', 'aioseo_filter_schema_breadcrumbs_home' );

function aioseo_filter_schema_breadcrumbs_home( $name ) {
   return 'Homepage';
}

IMPORTANT NOTE: Whilst it is possible to remove the word “Home” from breadcrumbs using this filter, this is not recommended because Google will return an error if no name is specified.