@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | use Timber\Timber; |
8 | 8 | use Timber\Post; |
9 | 9 | |
10 | -add_filter('Flynt/addComponentData?name=BlockAnchor', function ($data) { |
|
10 | +add_filter('Flynt/addComponentData?name=BlockAnchor', function($data) { |
|
11 | 11 | if (isset($data['anchor'])) { |
12 | 12 | // convert to lowercase letters only |
13 | 13 | $data['anchor'] = preg_replace('/[^a-zA-Z]/', '', strtolower($data['anchor'])); |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | ]; |
44 | 44 | } |
45 | 45 | |
46 | -add_filter('acf/load_field/name=anchorLinkCopy', function ($field) { |
|
46 | +add_filter('acf/load_field/name=anchorLinkCopy', function($field) { |
|
47 | 47 | global $post; |
48 | 48 | $post = new \Timber\Post($post); |
49 | 49 | $message = $field['message']; |