Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🩹 Suppress the template_not_found_message when rendering cached blocks on ACF v6.3.x #281

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

Log1x
Copy link
Owner

@Log1x Log1x commented Aug 29, 2024

A useless "The render template for this ACF Block was not found" message was added in the acf_block_render_template hook when a template file isn't found at some point in ACF Pro 6.3.x.

This hook still makes sense over using a render callback for ACF Composer's use-case despite us echoing the rendered output ourselves so the best workaround is emptying the message using the acf/blocks/template_not_found_message filter when a cached block goes to render.

@Log1x Log1x merged commit 568540c into master Aug 29, 2024
2 checks passed
@Log1x Log1x deleted the fix/suppress-template-message branch August 29, 2024 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant