Skip to content

Commit b01c6de

Browse files
committed
add example of filter
1 parent ea3b924 commit b01c6de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/features/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ Feature_Manager::add_features( $features );
3333
```
3434

3535
> 💡 If you `apply_filters` to the features array before passing it to `add_features`, you can modify it with a filter.
36+
```
37+
$features = apply_filters( 'create_wordpress_plugin_features', $features );
38+
```
3639

3740
### Add a feature using the `add_feature` method
3841
```

0 commit comments

Comments
 (0)