Skip to content

Hooks: SEO

Type: Filter

Since: 5.71.0

Description:

Filters whether the breadcrumbs element adds a schema.org BreadcrumbList.

Only the trail of our own has one; the breadcrumbs of Yoast SEO and Rank Math bring their own. Return false when your theme or another plugin already describes the breadcrumbs of the page.

File: src/Theme_Builders/Breadcrumbs.php:272

Signature:

apply_filters( 'immomakler_breadcrumbs_schema', true, $items )

Parameters:

  • $add (bool) Whether to add it. Default true.
  • $items (array<int,array{label:string,url:string,current:bool}>) The trail.

immomakler_meta_keys_copy_custom_yoast_on_property_update

Section titled “immomakler_meta_keys_copy_custom_yoast_on_property_update”

Type: Filter

File: classes/class-immomakler.php:5075

Signature:

apply_filters( 'immomakler_meta_keys_copy_custom_yoast_on_property_update', true )

immomakler_meta_keys_to_copy_on_property_update

Section titled “immomakler_meta_keys_to_copy_on_property_update”

Type: Filter

File: classes/class-immomakler.php:5073

Signature:

apply_filters( 'immomakler_meta_keys_to_copy_on_property_update', [] )

Type: Filter

Since: 5.71.0

Description:

Filters whether WP-ImmoMakler prints the OpenGraph tags of property lists.

File: src/Frontend/Html_Meta/Open_Graph.php:382

Signature:

apply_filters( 'immomakler_opengraph_archive_tags', ! self::seo_plugin_writes_opengraph() )

Parameters:

  • $print (bool) True when no SEO plugin known to write OpenGraph tags is active.

immomakler_opengraph_compatible_image_types

Section titled “immomakler_opengraph_compatible_image_types”

Type: Filter

File: src/Frontend/Html_Meta/Open_Graph.php:520

Signature:

apply_filters( 'immomakler_opengraph_compatible_image_types', [ 'image/jpeg', 'image/png', 'image/gif' ] )

Type: Filter

File: src/Frontend/Html_Meta/Open_Graph.php:519

Signature:

apply_filters( 'immomakler_opengraph_image_size', Image_Sizes::GALLERY_XL )

Type: Filter

Since: 5.69.0

Description:

Filters the robots.txt Disallow patterns WP-ImmoMakler adds.

File: src/Frontend/Robots_Txt.php:105

Signature:

apply_filters( 'immomakler_robots_txt_disallow', $paths )

Parameters:

  • $paths (string[]) Path patterns, one Disallow: line each. Return an empty array to add none.

Type: Filter

File: src-plus/Frontend/SchemaOrg.php:633

Signature:

apply_filters( 'immomakler_schema_accomodation', $single )

Type: Filter

File: src-plus/Frontend/SchemaOrg.php:184

Signature:

apply_filters( 'immomakler_schema_aggregate_offer', $aggregate_offer, $query, $marketing_type )

Type: Filter

File: src-plus/Frontend/SchemaOrg.php:713

Signature:

apply_filters( 'immomakler_schema_commercial_property', $single )

Type: Filter

File: src-plus/Frontend/SchemaOrg.php:767

Signature:

apply_filters( 'immomakler_schema_event', $event, $title )

Type: Filter

File: src-plus/Frontend/SchemaOrg.php:461

Signature:

apply_filters( 'immomakler_schema_item_list', $item_list, $query )

Type: Filter

File: src-plus/Frontend/SchemaOrg.php:500

Signature:

apply_filters( 'immomakler_schema_product', apply_filters_deprecated( 'immomakler_schema_single', [ $single ], '5.38', 'immomakler_schema_product' ) )

Type: Filter

File: src-plus/Frontend/SchemaOrg.php:899

Signature:

apply_filters( 'immomakler_schema_video_object', $video_object, $video_url )

Type: Filter

Since: 5.69.0

Description:

Filters whether the reference archive is kept out of the status taxonomy’s noindex.

File: src/Frontend/Html_Meta/Reference_Archive.php:54

Signature:

apply_filters( 'immomakler_seo_index_reference_archive', ! self::term_has_own_robots() )

Parameters:

  • $is_indexable (bool) Whether the archive stays indexable.

Type: Filter

Since: 5.69.0

Description:

Filters whether a property counts as a reference for its SEO texts.

File: src/Frontend/Seo_Meta/Meta_Text_Settings.php:185

Signature:

apply_filters( 'immomakler_seo_is_reference', $is_reference, $openimmo_data )

Parameters:

  • $is_reference (bool) Whether the property is a reference.

Type: Filter

Since: 5.69.0

Description:

Filters how many features are listed in the generated SEO meta description.

File: src/Frontend/Seo_Meta/Meta_Text_Builder.php:201

Signature:

apply_filters( 'immomakler_seo_metadesc_feature_count', 3, $openimmo_data )

Parameters:

  • $count (int) Number of features.

Type: Filter

Since: 5.69.0

Description:

Filters the character budget of the generated SEO meta description.

File: src/Frontend/Seo_Meta/Meta_Text_Settings.php:137

Signature:

apply_filters( 'immomakler_seo_metadesc_max_length', $description_max_length, $openimmo_data )

Parameters:

  • $description_max_length (int) Maximum number of characters.

Type: Filter

Since: 5.69.0

Description:

Filters the template used for the generated SEO meta description.

File: src/Frontend/Seo_Meta/Meta_Text_Settings.php:110

Signature:

apply_filters( 'immomakler_seo_metadesc_template', $description_template, $openimmo_data )

Parameters:

  • $description_template (string) The template, with {token} placeholders.

Type: Filter

File: src/Frontend/SEO.php:442

Signature:

apply_filters( 'immomakler_seo_permalinks', false )

Type: Filter

File: src/Frontend/Html_Meta/Rank_Math.php:163

Signature:

apply_filters( 'immomakler_seo_remove_property_dates', true )

Additional usage locations:

  • src/Frontend/Html_Meta/Rank_Math.php:195

    apply_filters( 'immomakler_seo_remove_property_dates', true )
  • src/Frontend/Html_Meta/Yoast_Seo.php:68

    apply_filters( 'immomakler_seo_remove_property_dates', true )

Type: Filter

Since: 5.4

Description:

Filters whether the price is shown in the generated SEO texts.

File: src/Frontend/Seo_Meta/Meta_Text_Settings.php:227

Signature:

apply_filters( 'immomakler_seo_show_price_title_desc', $show_price, $openimmo_data )

Parameters:

  • $show_price (bool) Whether to show the price.

Type: Filter

Since: 5.69.0

Description:

Filters the character budget of the generated SEO title.

The budget covers the WP-ImmoMakler part only; Yoast SEO and Rank Math append their separator and site name to it.

File: src/Frontend/Seo_Meta/Meta_Text_Settings.php:125

Signature:

apply_filters( 'immomakler_seo_title_max_length', $title_max_length, $openimmo_data )

Parameters:

  • $title_max_length (int) Maximum number of characters.

Type: Filter

Since: 5.69.0

Description:

Filters the template used for the generated SEO title.

File: src/Frontend/Seo_Meta/Meta_Text_Settings.php:100

Signature:

apply_filters( 'immomakler_seo_title_template', $title_template, $openimmo_data )

Parameters:

  • $title_template (string) The template, with {token} placeholders.