Pass $args parameter to content hook.

This commit is contained in:
2025-03-29 20:20:51 -06:00
parent bcad45d1e8
commit 5dd326be0f
@@ -33,7 +33,7 @@ class <%= blockClassModel %>_Component extends \Core\Component {
$output = ( include( __DIR__ . '/templates/<%= blockFilename %>.template.php' ) )( $args, self::class ); $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 { function register_custom_logic(): void {