Skip to content

Commit

Permalink
🩹 Suppress the template_not_found_message when rendering cached blo…
Browse files Browse the repository at this point in the history
…cks on ACF v6.3.x (#281)
  • Loading branch information
Log1x authored Aug 29, 2024
1 parent c9402d4 commit 568540c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/AcfComposer.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ protected function handleBlocks(): void
return;
}

add_filter('acf/blocks/template_not_found_message', fn () => '');

method_exists($composer, 'assets') && $composer->assets($block);

echo $composer->render($block, $content, $is_preview, $post_id, $wp_block, $context);
Expand Down

0 comments on commit 568540c

Please sign in to comment.