From 5dd326be0fd43cba031270fd5b4c211c8716f193 Mon Sep 17 00:00:00 2001 From: Roman Axelrod Date: Sat, 29 Mar 2025 20:20:51 -0600 Subject: [PATCH] Pass $args parameter to `content` hook. --- platforms/wordpress/templates/Template_Basic_Component.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/wordpress/templates/Template_Basic_Component.php b/platforms/wordpress/templates/Template_Basic_Component.php index cb873c0..26207cc 100644 --- a/platforms/wordpress/templates/Template_Basic_Component.php +++ b/platforms/wordpress/templates/Template_Basic_Component.php @@ -33,7 +33,7 @@ class <%= blockClassModel %>_Component extends \Core\Component { $output = ( include( __DIR__ . '/templates/<%= blockFilename %>.template.php' ) )( $args, self::class ); - return apply_filters( 'axeweb_blocks/<%= ownerFilename %>/<%= blockFilename %>::content', $output ); + return apply_filters( 'axeweb_blocks/<%= ownerFilename %>/<%= blockFilename %>::content', $output, $args ); } function register_custom_logic(): void {