From 7d62720a8484835e2a5a35ac3f2ebd8152691a25 Mon Sep 17 00:00:00 2001 From: "Michael W. Delaney" Date: Sun, 18 Aug 2019 10:33:39 -0400 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a94cc09..597ad0b 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ Add blade templates to `views/blocks` which get and use ACF data. Each template Once a block is created you'll be able to assign ACF fields to it using the standard Custom Fields interface in WordPress. We recommend using [sage-advanced-custom-fields](https://github.com/MWDelaney/sage-advanced-custom-fields) to keep your ACF fields in version control with Sage. ## Filter block data -Block data can be altered via the 'sage/blocks/[block-name]/data' filter. For example, if your block template is called `my-block.blade.php`, you can alter the data thusly: +Block data can be altered via the 'sage/blocks/[block-name]/data' filter. For example, if your block template is called `my-block.blade.php`, you can alter the data this way: ```php add_filter('sage/blocks/my-block/data', function ($block) { // Do your thing here. });