Skip to content

VS Code extension that provides intellisense and autocomplete for WordPress hooks, actions, and filters

License

Notifications You must be signed in to change notification settings

wp-hooks/vscode-wordpress-hooks

Repository files navigation

WordPress Hook Autocompletion for VS Code

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

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