Aller au contenu

Hooks : Affichage

Type : Filter

Description (tirée du code source, en anglais) :

Filters how many archive items count as above the fold and therefore fetch their image eagerly.

Fichier : skins/bootstrap3/functions.php:1475

Signature :

apply_filters( 'immomakler_archive_above_the_fold_count', $columns )

Paramètres :

  • $columns (int) Number of items, defaults to the configured column count.

Type : Filter

Depuis la version : 5.71.0

Description (tirée du code source, en anglais) :

Filters the preview image of a property list. Used for og:image (through Yoast SEO or Rank Math, when no image is set there for the page) and for the thumbnail meta tag.

Fichier : src/Frontend/Archive/Archive_Image.php:78

Signature :

apply_filters( 'immomakler_archive_image', $image, $term )

Paramètres :

  • $term (\WP_Term|null) The term of the list, null on the property archive and search results.

Type : Filter

Description (tirée du code source, en anglais) :

Filter the sizes attribute of archive card images. Return an empty string (the default) to keep the value WordPress computes from the requested image size.

Fichier : src/Data/Image_Sizes.php:244

Signature :

apply_filters( 'immomakler_archive_image_sizes_attr', '' )

Paramètres :

  • $sizes (string) The sizes attribute value.

Type : Filter

Fichier : classes/class-immomakler.php:122

Signature :

apply_filters( 'immomakler_available_themes', $skins )

Type : Filter

Fichier : skins/bootstrap3/functions.php:1594

Signature :

apply_filters( 'immomakler_back_to_archive_link', $backlink )

Type : Filter

Fichier : skins/bootstrap3/single/calendly-property.php:27

Signature :

apply_filters( 'immomakler_calendly_html', $calendly_html, $calendly_link->get_url() )

Type : Filter

Fichier : src-plus/Carousel/Carousel.php:132

Signature :

apply_filters( 'immomakler_carousel_load_jscss_everywhere', false )

Type : Filter

Fichier : src-plus/Carousel/Carousel.php:243

Signature :

apply_filters( 'immomakler_carousel_options', $owlcarousel_options )

Type : Filter

Depuis la version : 5.69.0

Description (tirée du code source, en anglais) :

Filters the consent strategy.

Fichier : src/Frontend/Consent/Consent_Settings.php:79

Signature :

apply_filters( 'immomakler_consent_mode', $mode )

Paramètres :

  • $mode (string) One of ‘auto’, ‘own’, ‘off’.

Type : Filter

Depuis la version : 5.69.0

Description (tirée du code source, en anglais) :

Filters the service-to-category map. A site whose consent plugin files maps under statistics, or which adds a tour provider, adjusts it here.

Fichier : src/Frontend/Consent/Consent_Settings.php:115

Signature :

apply_filters( 'immomakler_consent_service_categories', $categories )

Paramètres :

  • $categories (array<string,string>) Service slug => category.

Type : Filter

Depuis la version : 5.69.0

Description (tirée du code source, en anglais) :

Filters the per-plugin service name map.

Fichier : src/Frontend/Consent/Consent_Settings.php:140

Signature :

apply_filters( 'immomakler_consent_service_names', $names )

Paramètres :

  • $names (array<string,array<string,string>>) Provider => our slug => theirs.

Type : Filter

Fichier : classes/class-immomakler.php:204

Signature :

apply_filters( 'immomakler_disable_frontend', false )

Autres utilisations :

  • classes/class-immomakler.php:612

    apply_filters( 'immomakler_disable_frontend', false )
  • src/Frontend/Skin.php:26

    apply_filters( 'immomakler_disable_frontend', false )
  • src/Frontend/Template_Pages/Template_Page_Controller.php:226

    apply_filters( 'immomakler_disable_frontend', false )

Type : Filter

Fichier : classes/plus/class-immomakler-search.php:391

Signature :

apply_filters( 'immomakler_enqueue_bootstrap_js', true )

Type : Filter

Fichier : skins/bootstrap3/single/epass-property.php:29

Signature :

apply_filters( 'immomakler_epass_diagram_size', 'full' )

Autres utilisations :

  • skins/bootstrap3/single/epass-property.php:53

    apply_filters( 'immomakler_epass_diagram_size', 'full' )
  • skins/bootstrap3/single/epass-property.php:78

    apply_filters( 'immomakler_epass_diagram_size', 'full' )
  • src-plus/Energy_Certificate/Energy_Certificate.php:116

    apply_filters( 'immomakler_epass_diagram_size', 'full' )
  • src-plus/Theme_Builders/Elementor/Widgets/Single_Epass_Diagram.php:187

    apply_filters( 'immomakler_epass_diagram_size', 'full' )
  • src-plus/Theme_Builders/Enfold/Elements/Single_Epass_Diagram.php:91

    apply_filters( 'immomakler_epass_diagram_size', 'full' )
  • src/Theme_Builders/Divi/Single_Epass_Module.php:65

    apply_filters( 'immomakler_epass_diagram_size', 'full' )
  • src/Theme_Builders/Divi5/Single_Epass_Diagram_Module.php:94

    apply_filters( 'immomakler_epass_diagram_size', 'full' )

immomakler_exclude_images_from_third_party_optimizers

Section intitulée « immomakler_exclude_images_from_third_party_optimizers »

Type : Filter

Description (tirée du code source, en anglais) :

Filter whether WP-ImmoMakler property photos are excluded from third-party image optimizers.

Fichier : src/Data/Third_Party_Optimizer_Exclusions.php:90

Signature :

apply_filters( 'immomakler_exclude_images_from_third_party_optimizers', (bool) ImmoMakler_Options::get( 'exclude_images_from_third_party_optimizers', true ) )

Paramètres :

  • $active (bool) Whether to exclude them.

Type : Filter

Fichier : classes/class-immomakler.php:6734

Signature :

apply_filters( 'immomakler_flaeche_prio', [ 'wohnflaeche', 'gesamtflaeche', 'ladenflaeche', 'bueroflaeche', 'verkaufsflaeche', 'gastroflaeche', 'nutzflaeche', 'lagerflaeche', 'grundstuecksflaeche', 'vermietbare_flaeche', 'sonstflaeche', ] )

Type : Filter

Fichier : classes/plus/class-immomakler-flexslider.php:19

Signature :

apply_filters('immomakler_flexslider_active', false)

Autres utilisations :

  • src-plus/Frontend/Shortcodes.php:686

    apply_filters( 'immomakler_flexslider_active', false )

Type : Filter

Description (tirée du code source, en anglais) :

Filter the resolved gallery image collection. Fires from both {@see self::get_attachment_ids()} and {@see self::get_collection()} so reordering / filtering / augmentation applies uniformly regardless of which entry point a caller uses.

Fichier : src/Frontend/Gallery/Image_Source_Resolver.php:203

Signature :

apply_filters( 'immomakler_gallery_image_collection', $collection, $post_id, $source )

Paramètres :

  • $collection (Image_Collection) Resolved collection.
  • $post_id (int) Property post ID the resolver was called with.
  • $source (string) One of the SOURCE_* constants.

Type : Filter

Depuis la version : 5.70.0

Description (tirée du code source, en anglais) :

Filter the sizes attribute of gallery images. Return an empty string (the default) to keep the value WordPress computes from the requested image size.

Fichier : src/Data/Image_Sizes.php:284

Signature :

apply_filters( 'immomakler_gallery_image_sizes_attr', '', $role, $preset, $image_size )

Paramètres :

  • $sizes (string) The sizes attribute value.
  • $role (string) main, thumb or tile.
  • $preset (string) Gallery preset id, e.g. vertical_thumbs.
  • $image_size (string) Requested registered image size.

Type : Filter

Depuis la version : 5.68.0

Description (tirée du code source, en anglais) :

Filter the URL a gallery photo links to. Fires only when the gallery’s click mode is permalink. Returning an empty string renders the photos unlinked.

Fichier : src/Frontend/Gallery/Image_Click_Resolver.php:136

Signature :

apply_filters( 'immomakler_gallery_link_url', $url, $post_id, $options )

Paramètres :

  • $url (string) The property’s permalink, or '' when the reference gate suppressed it.
  • $post_id (int) Resolved property post ID.

Type : Filter

Description (tirée du code source, en anglais) :

Filter the merged option set just before rendering. Receives the preset’s defaults already merged with per-call overrides; subscribers get the last word on values such as autoplay, loop, slide counts, navigation visibility, etc. without having to reach into the preset implementation.

Fichier : src/Frontend/Gallery/Gallery_Service.php:125

Signature :

apply_filters( 'immomakler_gallery_options', $options, $preset->id(), $resolved_post_id, $source )

Paramètres :

  • $preset_id (string) Active preset id.
  • $resolved_post_id (int) Resolved property post ID.
  • $source (string) Image source the gallery was built for (one of the SOURCE_* constants).

Type : Action

Description (tirée du code source, en anglais) :

Register custom gallery presets. Fires once per request, the first time any consumer reads from the registry. Subscribers receive the registry instance and call {@see Preset_Registry::register()} on it for each preset they want to contribute.

Fichier : src/Frontend/Gallery/Preset_Registry.php:120

Signature :

do_action( 'immomakler_gallery_register_presets', $this )

Paramètres :

  • $registry (Preset_Registry) The registry to register presets against.

Type : Filter

Depuis la version : 5.61.0

Description (tirée du code source, en anglais) :

Filter the items rendered in the static-fullwidth gallery’s bottom-right controls overlay. The base preset only adds the “Alle N Fotos anzeigen” button. Other code (theme builders, separate features) can hook in to add “Grundriss”, “Video”, “Virtueller Rundgang” links — typically using href to anchor-link to a section elsewhere on the property page.

Fichier : src/Frontend/Gallery/Presets/Static_Compact_Preset.php:412

Signature :

apply_filters( 'immomakler_gallery_static_controls_items', $items, $images, $post_id )

Paramètres :

  • $images (Image_Collection) Resolved image collection.
  • $post_id (int) Property post ID.

Autres utilisations :

  • src/Frontend/Gallery/Presets/Static_Fullwidth_Preset.php:417

    apply_filters( 'immomakler_gallery_static_controls_items', $items, $images, $post_id )

Type : Filter

Fichier : src/Frontend/Gallery/Presets/Static_Hero_Preset.php:145

Signature :

apply_filters( 'immomakler_gallery_static_photos_button_text', /* translators: %s: number of photos */ _n( '%s Foto ansehen', '%s Fotos ansehen', $count, 'immomakler' ) )

Type : Filter

Fichier : src/Data/Image_Sizes.php:169

Signature :

apply_filters( 'immomakler_image_sizes', [ self::GALLERY_BIG => [ 'width' => 900, 'height' => 1350, 'crop' => false, ], self::GALLERY_THUMB => [ 'width' => 200, 'height' => 300, 'crop' => false, ], self::ARCHIVE_THUMB => [ 'width' => 400, 'height' => 600, 'crop' => false, ], self::ARCHIVE_THUMB_RETINA => [ 'width' => 800, 'height' => 1200, 'crop' => false, ], self::ARCHIVE_THUMB_BIG => [ 'width' => 475, 'height' => 713, 'crop' => false, ], self::GALLERY_XL => [ 'width' => 1200, 'height' => 1800, 'crop' => false, ], self::PERSON_THUMB => [ 'width' => 400, 'height' => 600, 'crop' => false, ], ] )

Type : Filter

Depuis la version : 5.69.0

Description (tirée du code source, en anglais) :

Filters whether a download counts as a floorplan. Lets a site widen the match to whatever its own CRM names the file — “Plan”, “Layout”, a floor abbreviation — or exclude a false positive.

Fichier : src/Data/Property/Downloads/Download.php:105

Signature :

apply_filters( 'immomakler_is_floorplan_download', $is_floorplan, $this )

Paramètres :

  • $is_floorplan (bool) Whether the name matched.
  • $download (Download) The download being tested.

Type : Filter

Description (tirée du code source, en anglais) :

Filters whether WP-ImmoMakler renders the property list and detail views with its own templates. Return false to leave every property view to the theme, for example with a theme builder WP-ImmoMakler does not detect. Templates the theme provides itself are used regardless.

Fichier : src/Frontend/Template_Takeover.php:121

Signature :

apply_filters( 'immomakler_load_cpt_templates', $enabled, $type )

Paramètres :

  • $enabled (bool) Whether the plugin renders the view.
  • $type (string) Template type: single, archive, taxonomy or 404.

Type : Filter

Fichier : classes/class-immomakler.php:6754

Signature :

apply_filters( 'immomakler_preis_prio', [ 'kaufpreis', 'kaltmiete', 'nettokaltmiete', 'warmmiete', 'gesamtmietenetto', 'gesamtmietebrutto', 'mietpreis_pro_qm', ] )

Type : Filter

Description (tirée du code source, en anglais) :

Filter the sizes attribute for video/tour preview tiles. The tile is fluid (100% of a content-column panel), so the default assumes a full-width tile on mobile and a ~720px column on desktop. Page-builder layouts with a different column width can override it.

Fichier : src/Helpers/Responsive_Preview_Image.php:184

Signature :

apply_filters( 'immomakler_preview_image_sizes', '(max-width: 768px) 100vw, 720px' )

Paramètres :

  • $sizes (string) The sizes attribute value.

Type : Filter

Depuis la version : 5.60.0

Description (tirée du code source, en anglais) :

Filter the example property ID used by builder previews (Divi Visual Builder, WPBakery Frontend Editor, Bricks preview, Elementor preview). Set this to a fully-populated property’s post ID so all four theme-builder integrations show consistent sample data while editing layout templates. Return 0 to fall back to the default picker (latest published immomakler_object with status offen).

Fichier : src/Data/Property_Helper.php:397

Signature :

apply_filters( 'immomakler_preview_property_id', 0 )

Paramètres :

  • $post_id (int) Default 0 (no override).

Type : Filter

Description (tirée du code source, en anglais) :

Filters the label of the “show project page” button shown below the units table on a single unit page.

Fichier : src-plus/Frontend/Project_Units_View.php:323

Signature :

apply_filters( 'immomakler_project_page_button_label', __( 'Projektseite anzeigen', 'immomakler' ), $project_id, $unit_post_id )

Paramètres :

  • $label (string) Button label.
  • $project_id (int) Parent project post ID.
  • $unit_post_id (int) Current unit post ID.

Type : Filter

Description (tirée du code source, en anglais) :

Filters the label of the “Kontakt aufnehmen” button shown in a unit’s expandable detail panel.

Fichier : src-plus/Frontend/Project_Units_Detail_Panel.php:183

Signature :

apply_filters( 'immomakler_project_units_contact_button_label', __( 'Kontakt aufnehmen', 'immomakler' ), $post_id )

Paramètres :

  • $label (string) Button label.
  • $post_id (int) Unit post ID.

Type : Filter

Description (tirée du code source, en anglais) :

Filters the content of a unit’s expandable detail panel (the “Akkordeon” feature), before it is wrapped in the panel container. Use this to append custom markup — an enquiry button, a download link — to the panel, or to replace its content entirely. Returning a non-empty value also suppresses the “Keine weiteren Details verfügbar.” placeholder. The panel is rendered on demand by {@see Project_Units_Ajax}, so the callback runs during an admin-ajax request, not during the page render that produced the table.

Fichier : src-plus/Frontend/Project_Units_Detail_Panel.php:141

Signature :

apply_filters( 'immomakler_project_units_detail_panel_content', $content, $post_id )

Paramètres :

  • $content (string) Panel content: facts list, cover-image gallery and — when enabled — the contact section. Empty when the unit has none of them.
  • $post_id (int) Unit post ID.

Type : Filter

Depuis la version : 5.60.0

Description (tirée du code source, en anglais) :

Filters the SVG markup used for the “Details” column info icon. Lets themes / customer code swap the default Heroicons-style information-circle for a different glyph (e.g. external-link arrow, PDF icon, brand mark) without having to override the whole template. The element itself carries the accessible label (aria-label), so the SVG should keep aria-hidden="true" — and any replacement should be safe HTML, since it is emitted unescaped by design.

Fichier : src-plus/Frontend/Project_Units_Table.php:1818

Signature :

apply_filters( 'immomakler_project_units_details_icon', self::DETAILS_ICON_SVG, $row_post_id )

Paramètres :

  • $svg (string) The default SVG markup for the icon.
  • $post_id (int) ID of the unit post being rendered.

Type : Filter

Depuis la version : 5.70.0

Description (tirée du code source, en anglais) :

Filters the content kinds page builder display conditions offer. Add a key here together with an immomakler_property_has_content callback to offer a condition of your own.

Fichier : src/Data/Property/Content_Presence.php:82

Signature :

apply_filters( 'immomakler_property_content_options', $options )

Paramètres :

  • $options (array<string,string>) Content key => label.

Type : Filter

Fichier : src/Data/PropertyData.php:237

Signature :

apply_filters( 'immomakler_property_data_optional_single_keys', [ 'objekt_typ' ], $this->post_id )

Type : Filter

Fichier : skins/bootstrap3/functions.php:1176

Signature :

apply_filters( 'immomakler_property_excerpt', $excerpt, $post_id )

Type : Filter

Depuis la version : 5.60.0

Description (tirée du code source, en anglais) :

Filter the property field-key → icon-key default mapping. Tells the “Automatisch” choice which icon to pick for each PropertyData field. Add entries for custom user-defined fields.

Fichier : src/Theme_Builders/Property_Field_Icons.php:350

Signature :

apply_filters( 'immomakler_property_field_icon_map', self::default_field_map() )

Type : Filter

Depuis la version : 5.70.0

Description (tirée du code source, en anglais) :

Filter the stroke width and form of the property field icons.

Fichier : src/Theme_Builders/Property_Field_Icons.php:483

Signature :

apply_filters( 'immomakler_property_field_icon_style', $style )

Type : Filter

Depuis la version : 5.60.0

Description (tirée du code source, en anglais) :

Filter the property field icon library. Add or override icons available in the Eckdaten-Boxen widget across all theme builders. Each entry must be keyed by a unique icon key and contain label and svg keys. The SVG markup is the inner SVG (paths, circles, rects) — the <svg> envelope is added at render time. An optional solid set to true marks a filled icon (since 5.71.0).

Fichier : src/Theme_Builders/Property_Field_Icons.php:331

Signature :

apply_filters( 'immomakler_property_field_icons', self::default_icons() )

Type : Filter

Depuis la version : 5.70.0

Description (tirée du code source, en anglais) :

Filters whether a property has a kind of content.

Fichier : src/Data/Property/Content_Presence.php:104

Signature :

apply_filters( 'immomakler_property_has_content', $has, $content, $post_id )

Paramètres :

  • $has (bool) Whether the content is present.
  • $content (string) Content key.
  • $post_id (int) Property post ID.

Type : Filter

Depuis la version : 5.70.0

Description (tirée du code source, en anglais) :

Filters the plural forms of the property-type terms. Lets a site add plurals for term names of its own, or reword the shipped ones.

Fichier : src/Data/Taxonomies/Property_Type_Plural.php:259

Signature :

apply_filters( 'immomakler_property_type_plurals', $plurals, $count )

Paramètres :

  • $count (int) Number of properties the names stand for.

Type : Filter

Depuis la version : 5.71.0

Description (tirée du code source, en anglais) :

Filters the PropertyData keys listed as key facts of a reference property. The default is the field set of the Eckdaten elements of the page builders, the areas, the rooms and the parking spaces, plus the year of construction. Prices, the object number, the address and custom fields are deliberately not among them.

Fichier : skins/bootstrap3/single/content-property-reference.php:25

Signature :

apply_filters( 'immomakler_reference_single_data_keys', [ 'wohnflaeche', 'nutzflaeche', 'bueroflaeche', 'ladenflaeche', 'lagerflaeche', 'verkaufsflaeche', 'gewerbeflaeche', 'gesamtflaeche', 'grundstuecksflaeche', 'anzahl_zimmer', 'anzahl_stellplaetze', 'baujahr', ] )

Paramètres :

  • $keys (string[]) PropertyData keys, listed in this order when set.

Type : Filter

Fichier : skins/bootstrap3/functions.php:29

Signature :

apply_filters( 'immomakler_require_jquery_in_head', false )

Type : Filter

Description (tirée du code source, en anglais) :

Filters the ordered list of query-argument variants tried when looking for similar properties. Allows adding, removing, or reordering relaxation steps (e.g. inserting a price-range or living-space variant) without touching this class.

Fichier : src-plus/Data/Similar_Properties_Query.php:391

Signature :

apply_filters( 'immomakler_similar_properties_query_variants', $variants, $type_slugs, $vermarktungsart, $ort, $center, $exclude_ids, $count )

Paramètres :

  • $type_slugs (string[]) Top-level object-type term slugs of the current property.
  • $vermarktungsart (string) ‘kauf’ or ‘miete’.
  • $ort (string) Location term name of the current property.
  • $center (string) “PLZ Ort” geo-search center of the current property.
  • $exclude_ids (int[]) Post IDs to always exclude.
  • $count (int) Maximum number of properties to return.

immomakler_skin_bootstrap3_vertical_archive_layout

Section intitulée « immomakler_skin_bootstrap3_vertical_archive_layout »

Type : Filter

Fichier : skins/bootstrap3/functions.php:993

Signature :

apply_filters( 'immomakler_skin_bootstrap3_vertical_archive_layout', apply_filters( 'immomakler_theme_bootstrap3_vertical_archive_layout', false ) )

Type : Filter

Fichier : skins/bootstrap3/functions.php:143

Signature :

apply_filters( 'immomakler_skin_gallery_preset', $default_layout )

Autres utilisations :

  • skins/bootstrap3/single/gallery-swiper.php:39

    apply_filters( 'immomakler_skin_gallery_preset', $immomakler_default_layout )

Type : Filter

Fichier : src/Frontend/Skin.php:230

Signature :

apply_filters( 'immomakler_skin_paths', $skin_paths )

immomakler_theme_bootstrap3_vertical_archive_layout

Section intitulée « immomakler_theme_bootstrap3_vertical_archive_layout »

Type : Filter

Fichier : skins/bootstrap3/functions.php:993

Signature :

apply_filters( 'immomakler_theme_bootstrap3_vertical_archive_layout', false )

Type : Filter

Depuis la version : 5.70.0

Description (tirée du code source, en anglais) :

Filters the default colours a theme supplies to WP-ImmoMakler. Applied only while “Farben anpassen” is off. Return primary (buttons, gallery controls, highlights) and optionally link (text links) as CSS colours; custom properties such as var(--theme-accent, #336699) are allowed.

Fichier : skins/bootstrap3/functions.php:441

Signature :

apply_filters( 'immomakler_theme_colors', [] )

Paramètres :

  • $colors (array<string,string>) Colours supplied so far; empty by default.

Type : Filter

Description (tirée du code source, en anglais) :

Filter the lightGallery options of a single tour-lightbox tile.

Fichier : src-plus/Frontend/Virtual_Tours/Tour_Lightbox_Renderer.php:206

Signature :

apply_filters( 'immomakler_tour_lightbox_options', $config, $element )

Type : Filter

Description (tirée du code source, en anglais) :

Filters how long a tour-link reachability verdict is cached.

Fichier : src-plus/Data/Property/Virtual_Tours/Link_Checker.php:182

Signature :

apply_filters( 'immomakler_tour_link_check_ttl', $default_ttl, $url, $is_reachable )

Paramètres :

  • $default_ttl (int) Cache lifetime in seconds.
  • $url (string) The checked tour URL.
  • $is_reachable (bool) Whether the link was reachable.

Type : Filter

Description (tirée du code source, en anglais) :

Filter the lightGallery options of a single video-lightbox tile.

Fichier : src/Frontend/Videos/Video_Lightbox_Renderer.php:419

Signature :

apply_filters( 'immomakler_video_lightbox_options', $config, $element )

Type : Filter

Description (tirée du code source, en anglais) :

Filter whether visitors’ browsers may generate missing video posters. Decoding a frame costs the visitor a few hundred kilobytes of the video, once per video across the whole site. Return false to rely solely on ffmpeg or on featured images set by hand.

Fichier : src/Frontend/Videos/Video_Lightbox_Renderer.php:291

Signature :

apply_filters( 'immomakler_video_poster_browser_capture', ! is_admin() )

Paramètres :

  • $enabled (bool) Whether the browser capture is allowed.

Type : Filter

Description (tirée du code source, en anglais) :

Filter how similar two browser-captured frames must be to agree. Lower is stricter. Measured as a Hamming distance over the 64-bit dHash, so 0 demands identical hashes and 64 accepts anything.

Fichier : src/Frontend/Videos/Video_Poster_Quorum.php:118

Signature :

apply_filters( 'immomakler_video_poster_match_distance', self::MATCH_DISTANCE )

Paramètres :

  • $distance (int) Maximum accepted distance.