All features
Cherry Blossom feature
Structured data Providers: ACF Block Provider base
Provides ACF field preparation for block-backed schema providers.
Provides ACF field preparation for block-backed schema providers.
Capabilities and extension points
Determines whether ACF block data is available for the request.
- param object $context Structured data request context.
- return bool Whether the provider supports the request.
Prepares one saved ACF block and passes its fields to the provider.
- param array $block Parsed WordPress block.
- param object $context Structured data request context.
- return array One entity, a list of entities, or an empty array.
Builds schema entities from prepared ACF fields.
Override this builder rather than the temporary-metadata lifecycle. Return Provider-compatible data without @context or printed markup. Temporary ACF metadata is reset even if this builder throws.
- param array $fields Prepared ACF fields, including formatted values.
- param array $block Parsed WordPress block.
- param object $context Structured data request context.
- return array One entity, a list of entities, or an empty array.
Source reference
This editable reference page is based on the PHP documentation in structured-data/providers/abstract-acf-block-provider.php.