Filter Hooks Reference

Blocks for ACF Fields exposes WordPress filter hooks at every important stage of a block’s render pipeline — when its attributes are read, when its raw field value is loaded, when its output HTML is assembled, and at several block-type-specific moments in between.

Block-level filters

FilterPurpose
afb/attributesFilter block attributes for every ACF field block.
afb/valueFilter the raw field value loaded from ACF, before any per-format processing.
afb/outputFilter the final HTML produced by every ACF field block.
afb/settings/carouselFilter the Swiper.js carousel config for all carousel layouts (Repeater, Gallery, Post/Term/User Loop).
afb/settings/masonryFilter the Macy.js masonry config (used by the Gallery Masonry layout).
afb/settings/mapFilter the Google Maps JS config (center, zoom, marker, styles) for the Map display format.

Display-format-specific filters

FilterDisplay FormatPurpose
afb/button/textButtonThe resolved button-label text after “Use the URL / field / custom” resolution.
afb/embed-popup/embed_htmlEmbed PopupThe resolved oEmbed HTML before it’s injected into the popup template.
afb/accordion/iconRepeater AccordionSVG markup for the open/close toggle icon.