Skip to content
VS Code extension for autocomplete support for WordPress actions and filters
TypeScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images
src
.eslintrc.json
.gitignore
.vscodeignore
LICENSE
package-lock.json
package.json
readme.md
tsconfig.json
tslint.json

readme.md

WordPress Hook Autocompletion for VS Code

This extension adds autocomplete support for WordPress action and filter names.

Last updated for WordPress 5.4 beta.

Usage

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:

Screenshot

Autocomplete is also provided for the callback function and other built-in callbacks to save you keystrokes:

Screenshot

An autocompleted closure callback looks like this:

add_filter( 'template_directory', function( $template_dir, $template, $theme_root ) {
    |
}, 10, 3 );

License

This extension is free and open source software. It's licensed under the GPLv3.

Thanks

You can’t perform that action at this time.