{"id":19419259,"url":"https://github.com/wp-hooks/vscode-wordpress-hooks","last_synced_at":"2025-04-06T06:08:55.247Z","repository":{"id":35960917,"uuid":"218139835","full_name":"wp-hooks/vscode-wordpress-hooks","owner":"wp-hooks","description":"VS Code extension that provides intellisense and autocomplete for WordPress hooks, actions, and filters","archived":false,"fork":false,"pushed_at":"2025-03-12T16:16:44.000Z","size":1328,"stargazers_count":114,"open_issues_count":9,"forks_count":3,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-03-30T04:11:13.141Z","etag":null,"topics":["vscode","wordpress"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=johnbillion.vscode-wordpress-hooks","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wp-hooks.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"johnbillion"}},"created_at":"2019-10-28T20:32:25.000Z","updated_at":"2025-03-12T16:16:49.000Z","dependencies_parsed_at":"2024-12-05T00:20:44.123Z","dependency_job_id":"4bab35cf-46e9-492e-8820-ec9ab01d59da","html_url":"https://github.com/wp-hooks/vscode-wordpress-hooks","commit_stats":null,"previous_names":["johnbillion/vscode-wordpress-hooks"],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-hooks%2Fvscode-wordpress-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-hooks%2Fvscode-wordpress-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-hooks%2Fvscode-wordpress-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-hooks%2Fvscode-wordpress-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wp-hooks","download_url":"https://codeload.github.com/wp-hooks/vscode-wordpress-hooks/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247441052,"owners_count":20939239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["vscode","wordpress"],"created_at":"2024-11-10T13:16:59.213Z","updated_at":"2025-04-06T06:08:55.225Z","avatar_url":"https://github.com/wp-hooks.png","language":"TypeScript","funding_links":["https://github.com/sponsors/johnbillion"],"categories":[],"sub_categories":[],"readme":"# Hooks IntelliSense for WordPress\n\nThis VS Code extension provides IntelliSense and autocomplete for WordPress hooks, actions, and filters.\n\n* Autocomplete for action and filter names\n  - Supports all actions and filters up to WordPress 6.7\n* Autocomplete for action and filter callback functions\n  - Supports functions, class methods, closures, arrow functions, and more\n  - The parameter types, return type, and a docblock are included where appropriate\n  - Various options can be controlled in the settings for the extension\n* Hover information on action and filter names\n  - Includes a useful link to the developer.wordpress.org documentation site\n\n## Usage\n\nStart 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:\n\n[![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)\n\nAutocomplete 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:\n\n[![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)\n\nAn autocompleted closure callback looks like this:\n\n[![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)\n\nHover information for an action or filter name looks like this:\n\n[![Screenshot of VS Code showing hover information for an action](images/screenshot-4.png?v=0.5.0)](images/screenshot-4.png)\n\n## FAQ\n\n### Which functions does the autocomplete list and hover information work with?\n\n* `add_action()`\n* `add_filter()`\n* `remove_action()`\n* `remove_filter()`\n* `has_action()`\n* `has_filter()`\n* `doing_action()`\n* `doing_filter()`\n* `did_action()`\n* `did_filter()`\n\n### How can I trigger the autocomplete list if it doesn't show up?\n\nPlace your cursor within the first parameter of one of the supported functions, eg `add_action()` or `add_filter()`, and hit \u003ckbd\u003ectrl\u003c/kbd\u003e+\u003ckbd\u003espace\u003c/kbd\u003e. This works with any autocomplete provider, not only this extension.\n\n### Can I disable or adjust the type declarations / type hints / docblock?\n\nYes, open the preferences for VS Code and go to the **Extensions -\u003e Hooks IntelliSense for WordPress** section.\n\n### Where does the list of hook names come from?\n\nThey'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.\n\n## Sponsors\n\n\u003cp align=\"center\"\u003eThe time that I spend maintaining this extension and others is in part sponsored by:\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003ca href=\"https://automattic.com\"\u003e\u003cimg src=\"https://cdn.jsdelivr.net/gh/johnbillion/johnbillion@latest/assets/sponsors/automattic.svg\" alt=\"Automattic\" width=\"50%\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003ca href=\"https://servmask.com\"\u003e\u003cimg src=\"https://cdn.jsdelivr.net/gh/johnbillion/johnbillion@latest/assets/sponsors/servmask.svg\" alt=\"ServMask\" width=\"25%\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003ePlus all my kind sponsors on GitHub:\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003ca href=\"https://github.com/sponsors/johnbillion\"\u003e\u003cimg src=\"https://cdn.jsdelivr.net/gh/johnbillion/johnbillion@latest/sponsors.svg\" alt=\"Sponsors\"\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003ca href=\"https://github.com/sponsors/johnbillion\"\u003eClick here to find out about supporting my open source tools and plugins\u003c/a\u003e.\u003c/p\u003e\n\n## License\n\nThis extension is free and open source software. It's licensed under the GNU GPL version 3.\n\n## Thanks\n\n* This extension uses the [wp-hooks library](https://github.com/wp-hooks/wordpress-core) as the hook information provider.\n* This extension uses some code inspired by the [Autocomplete WordPress Hooks extension for Atom](https://github.com/joehoyle/atom-autocomplete-wordpress-hooks).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-hooks%2Fvscode-wordpress-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwp-hooks%2Fvscode-wordpress-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-hooks%2Fvscode-wordpress-hooks/lists"}