Skip to content

Commit dfeeb6f

Browse files
committed
Meta updates.
1 parent 99e5002 commit dfeeb6f

File tree

5 files changed

+6
-11
lines changed

5 files changed

+6
-11
lines changed

images/icon.png

-19.7 KB
Loading

images/screenshot-1.png

-152 KB
Loading

images/screenshot-2.png

-54.7 KB
Loading

images/screenshot-3.png

24.1 KB
Loading

readme.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,17 @@ Last updated for WordPress 5.5.
88

99
Start typing the name of a WordPress action or filter within `add_action()` or `add_filter()` and you'll get an autocomplete list of all matching actions or filters, plus information about the parameters and usage:
1010

11-
[![Screenshot of VS Code showing an autocomplete list for the first parameter of the add_filter function](images/screenshot-1.png)](images/screenshot-1.png)
11+
[![Screenshot of VS Code showing an autocomplete list for the first parameter of the add_filter function](images/screenshot-1.png?v=0.3.0)](images/screenshot-1.png)
1212

1313
Autocomplete is also provided for a closure callback function and other built-in callbacks to save you keystrokes:
1414

15-
[![Screenshot of VS Code showing an autocomplete list for the callback parameter of the add_filter function](images/screenshot-2.png)](images/screenshot-2.png)
15+
[![Screenshot of VS Code showing an autocomplete list for the callback parameter of the add_filter function](images/screenshot-2.png?v=0.3.0)](images/screenshot-2.png)
1616

1717
An autocompleted closure callback looks like this:
1818

19-
```php
20-
add_filter( 'template_directory', function( $template_dir, $template, $theme_root ) {
21-
|
22-
return $template_dir;
23-
}, 10, 3 );
24-
```
19+
[![Screenshot of VS Code showing a completed callback closure for the add_filter function](images/screenshot-3.png?v=0.3.0)](images/screenshot-3.png)
2520

26-
Parameter and return type declarations are provided where appropriate. The behaviour of these can be adjusted in the settings for the extension.
21+
Parameter type declarations, the return type declaration, and the docblock are included where appropriate. The behaviour of these can be adjusted in the settings for the extension.
2722

2823
## FAQ
2924

@@ -43,13 +38,13 @@ Parameter and return type declarations are provided where appropriate. The behav
4338

4439
Place your cursor within the first parameter of one of the supported functions, eg `add_action()` or `add_filter()`, and hit <kbd>ctrl</kbd>+<kbd>space</kbd>. This works with any autocomplete provider, not only this extension.
4540

46-
### Can I disable or adjust the type declarations / type hints?
41+
### Can I disable or adjust the type declarations / type hints / docblock?
4742

4843
Yes, open the preferences for VS Code and go to the **Extensions -> Autocomplete WordPress Hooks** section.
4944

5045
## License
5146

52-
This extension is free and open source software. It's licensed under the GPLv3.
47+
This extension is free and open source software. It's licensed under the GNU GPL version 3.
5348

5449
## Thanks
5550

0 commit comments

Comments
 (0)