{"repo":"wp-hooks/wordpress-core-hooks","free":true,"listed":false,"github":"https://github.com/wp-hooks/wordpress-core-hooks","clone":"git clone https://github.com/wp-hooks/wordpress-core-hooks.git","description":"WordPress core actions and filters as JSON","language":"Shell","stars":126,"topics":["wordpress"],"license":"GPL-3.0","category":"self-hosted-apps","readme_excerpt":"WordPress Hooks Reference All the actions and filters from WordPress core in machine-readable JSON format. Last updated for WordPress 7.0. Installation As a Composer package for use in PHP: As an npm package for use in JavaScript or TypeScript: Usage in PHP Usage in JavaScript Importing in TypeScript Interfaces for the components of the hooks can be imported too, if you need them: Actions, Filters, and Schemas The actions can be found in hooks/actions.json The filters can be found in hooks/filters.json The JSON schema can be found in hooks/schema.json The TypeScript interfaces can be found in interface/index.d.ts What can I use this for? Anything that needs programmatic access to a list of available hooks, for example: Autocomplete WordPress action and filter names in VS Code Autocomplete WordPress action and filter names in Vim WordPress plugin for Psalm Regenerating the Hook Files Change the roots/wordpress-full version in composer.json to one of: - The required major version, such as 6.8 - dev-main for nightlies prior to RC - An RC version, such as 6.9-RC1 Install the dependencies: Then run: During generation, a change and data integrity issues are saved in CHANGELOG.md and ISSUES.md respectively. Hook Files for Plugins Do you want the same hook files for your favourite plugins? The hook files in this repo are generated using wp-hooks-generator. It can generate hook files for WordPress plugins and themes as well as core. Sponsors The time that I spend maintaining this libr","default_branch":null,"files":null,"tree":[],"storefront":"/r/wp-hooks","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wp-hooks/wordpress-core-hooks/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}