All Projects → johnbillion → Vscode Wordpress Hooks

johnbillion / Vscode Wordpress Hooks

Licence: gpl-3.0
VS Code extension for autocomplete support for WordPress actions and filters

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Vscode Wordpress Hooks

Pods
The Pods Framework is a Content Development Framework for WordPress - It lets you create and extend content types that can be used for any project. Add fields of various types we've built in, or add your own with custom inputs, you have total control.
Stars: ✭ 883 (+2748.39%)
Mutual labels:  wordpress
Theme Bear
🐻 A VSCode dark theme 🐻
Stars: ✭ 27 (-12.9%)
Mutual labels:  vscode
Wp2static
WordPress static site generator for security, performance and cost benefits
Stars: ✭ 952 (+2970.97%)
Mutual labels:  wordpress
Builder Template Categories
Organize your Page Builder Templates in the WordPress Admin. Time saver, especially for bigger projects. Get a better and faster overview, don't get lost. Filter templates with your categories. With extended plugin & theme support.
Stars: ✭ 20 (-35.48%)
Mutual labels:  wordpress
Fancy Product Designer Extended
Updated fancy product designer plugin
Stars: ✭ 21 (-32.26%)
Mutual labels:  wordpress
Wp Bootstrap4 Megamenu Navwalker
A Navwalker to impliment a widget based Mega Menu using Bootstrap 4.0 nav classes
Stars: ✭ 28 (-9.68%)
Mutual labels:  wordpress
Without Guns For Vs Code
Visual Studio Code extension that teaches you mindful programming
Stars: ✭ 14 (-54.84%)
Mutual labels:  vscode
Medium Clone
🎉 Mediumm WordPress theme, very inspired by medium.com
Stars: ✭ 29 (-6.45%)
Mutual labels:  wordpress
Blog Post Workflow
Show your latest blog posts from any sources or StackOverflow activity or Youtube Videos on your GitHub profile/project readme automatically using the RSS feed
Stars: ✭ 910 (+2835.48%)
Mutual labels:  wordpress
Wordpress To Jekyll Exporter
One-click WordPress plugin that converts all posts, pages, taxonomies, metadata, and settings to Markdown and YAML which can be dropped into Jekyll
Stars: ✭ 951 (+2967.74%)
Mutual labels:  wordpress
Cmb2 Extension
This Repository is a extensions of CMB2 WordPress Plugin.
Stars: ✭ 20 (-35.48%)
Mutual labels:  wordpress
Vscode Material Theme
Port of the sublime text Material theme for Visual Studio Code in light and dark.
Stars: ✭ 21 (-32.26%)
Mutual labels:  vscode
Ultimate Blocks
Custom Gutenberg Blocks for Bloggers and Marketers. Create Better Content With Gutenberg.
Stars: ✭ 29 (-6.45%)
Mutual labels:  wordpress
Wordpress Related
WordPress codes
Stars: ✭ 15 (-51.61%)
Mutual labels:  wordpress
Disqus Wordpress Plugin
WordPress plugin for Disqus (2018 version)
Stars: ✭ 30 (-3.23%)
Mutual labels:  wordpress
Wordpress Exploit Framework
A Ruby framework designed to aid in the penetration testing of WordPress systems.
Stars: ✭ 882 (+2745.16%)
Mutual labels:  wordpress
Kandinsky
Проект Кандинский. Красивый сайт для НКО
Stars: ✭ 27 (-12.9%)
Mutual labels:  wordpress
Flixel Templates
Project templates for HaxeFlixel
Stars: ✭ 30 (-3.23%)
Mutual labels:  vscode
Constant Vigilance
Learn this if you want to be a software engineer. Constant vigilance means being continually aware of areas that need improvement. For me, I am constantly searching for valuable resources to ensure I am able to solve any problem that comes my way.
Stars: ✭ 30 (-3.23%)
Mutual labels:  wordpress
Atomize
A detailed and accurate Atom One Dark Theme for VS Code
Stars: ✭ 30 (-3.23%)
Mutual labels:  vscode

WordPress Hooks Intellisense for VS Code

This extension provides intellisense and autocomplete for WordPress hooks, actions, and filters.

  • Autocomplete for action and filter names
    • Supports all actions and filters up to WordPress 5.6
  • Autocomplete for action and filter callback functions
    • Supports functions, class methods, closures, arrow functions, and more
    • The parameter types, return type, and a docblock are included where appropriate
    • Various options can be controlled in the settings for the extension
  • Hover information on action and filter names
    • Includes a useful link to the developer.wordpress.org documentation site

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 of VS Code showing an autocomplete list for the first parameter of the add_filter function

Autocomplete is also provided for the callback function. It's contextually aware and provides options for a function, a class method, a closure, an arrow function, and WordPress' built-in utility functions:

Screenshot of VS Code showing an autocomplete list for the callback parameter of the add_filter function

An autocompleted closure callback looks like this:

Screenshot of VS Code showing a completed callback closure for the add_filter function

Hover information for an action or filter name looks like this:

Screenshot of VS Code showing hover information for an action

FAQ

Which functions does the autocomplete list and hover information work with?

  • add_action()
  • add_filter()
  • remove_action()
  • remove_filter()
  • has_action()
  • has_filter()
  • doing_action()
  • doing_filter()
  • did_action()

How can I trigger the autocomplete list if it doesn't show up?

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

Can I disable or adjust the type declarations / type hints / docblock?

Yes, open the preferences for VS Code and go to the Extensions -> WordPress Hooks Intellisense section.

Where does the list of hook names come from?

They're generated directly from the WordPress core software and updated in time for each new release. They're bundled with this extension so there's no requirement for your project to include WordPress if you don't want to, and the extension doesn't scan the files in your project looking for actions and filters.

Sponsors

Development of this extension is sponsored by:

Automattic

Plus all my kind sponsors on GitHub:

Sponsors

Click here to find out about supporting this extension and my other WordPress development tools and plugins.

License

This extension is free and open source software. It's licensed under the GNU GPL version 3.

Thanks

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].