Skip to content

Commit

Permalink
Merge pull request #346 from infinum/kancijan-patch-1
Browse files Browse the repository at this point in the history
Update blocks-patterns.md
  • Loading branch information
kancijan authored Sep 4, 2024
2 parents 1effbc0 + eead5a2 commit af39857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/basics/blocks-patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ To remove all core patterns add this code to you `src/Blocks/Blocks.php` class.
Filter goes in the register method:
```php
// Remove block patterns.
\add_filter('init', [$this, 'removeCorePatterns'], 9);
\add_action('init', [$this, 'removeCorePatterns'], 9);
```

Callback method:
Expand Down

0 comments on commit af39857

Please sign in to comment.