Open data
Open data: WordPress reference datasets
The three references on this site are built from datasets, and each one is published here as a plain JSON or CSV file, along with our image-size benchmark. You can fetch them without an API key or an account, and the CC BY 4.0 licence lets you reuse them anywhere, commercially too, as long as you credit the source as described below.
WordPress Hooks Index
64 WordPress and WooCommerce actions and filters, each with its signature, when it fires and the file and line that call it in WordPress 7.1.4 or WooCommerce 11.2.2, plus examples and common mistakes.
Block Theme Template Hierarchy
16 kinds of request, each with the block theme templates WordPress checks for it, most specific first, read from the WordPress 7.1.4 source. Also lists how block themes differ from the classic PHP hierarchy.
Image Sizes Cheat Sheet
Every image size WordPress and WooCommerce register by default, with width, height, whether it hard-crops and a note on each, plus one common link-preview size that WordPress does not make. The JSON file also gives the 2560 px -scaled threshold and which core sizes have a field in Settings → Media.
WordPress Image-Size Benchmark, November 2026
How many files and bytes one 5696×4784 JPEG upload creates under 28 popular free themes and 9 theme + plugin pairs (WooCommerce 11.2.2, Elementor 4.3.6) on WordPress 7.1.4, GD, JPEG quality 82. 38 rows, including one no-plugin control, tested 2026-11-05 and 2026-11-06.
Licence and attribution
All datasets are released under CC BY 4.0. You may use, adapt and redistribute them, including commercially. There are two conditions. Attribution: credit Odie Themes, link to the licence and say if you changed the data, in any reasonable way but not one that suggests Odie Themes endorses you or your use. No additional restrictions: you may not add legal terms or technical measures that stop others from doing what the licence allows.
Attribution lines, if you want one ready to paste. If you changed the data, add (modified) after the dataset link:
Data from Odie Themes (https://odiethemes.com/reference/wordpress-hooks/), licensed under CC BY 4.0: https://creativecommons.org/licenses/by/4.0/
Data from Odie Themes (https://odiethemes.com/reference/block-theme-template-hierarchy/), licensed under CC BY 4.0: https://creativecommons.org/licenses/by/4.0/
Data from Odie Themes (https://odiethemes.com/reference/wordpress-image-sizes-cheat-sheet/), licensed under CC BY 4.0: https://creativecommons.org/licenses/by/4.0/
Data from Odie Themes (https://odiethemes.com/guides/wordpress-thumbnail-sizes/), licensed under CC BY 4.0: https://creativecommons.org/licenses/by/4.0/ Fetching it
The files are static and served with access-control-allow-origin: *, so a browser can read them directly:
const res = await fetch(
'https://odiethemes.com/reference/wordpress-hooks.json'
);
const { hooks } = await res.json(); What the verified flag means
Rows in the hooks and image sizes files carry a "verified" field. true means the row was checked against the WordPress or WooCommerce source; false means it has not been checked yet, so confirm it before you rely on it. The open-graph row in the image sizes files has no verified or crop value (both cells are empty in the CSV), because it is not a size WordPress or WooCommerce makes. The hierarchy file has no such field, because every chain in it was read from the WordPress 7.1.4 source.
Corrections
If a row is wrong, tell us and it will be fixed. Changes to the datasets are listed below by date.
2026-11-17
- Hooks index: 5 entries were corrected after another read of the WordPress 7.1.4 source and our 16 November 2026 test of uploads that the block editor resizes in the browser: big_image_size_threshold, intermediate_image_sizes_advanced, wp_generate_attachment_metadata and upload_size_limit (its example too), and admin_body_class, whose note now gives the fatal error that array-style code causes. No entry was added or removed.
- All dataset files: the credit line inside each file now reads “Data from Odie Themes (page URL), licensed under CC BY 4.0”, with the licence link, the same line as in the list above. Both CSV files also ask you to say if you changed the data. No rows or values changed in the cheat sheet or the benchmark.
2026-11-16
- Hooks index: every entry was read again from the WordPress 7.1.4 and WooCommerce 11.2.2 source. The argument counts of 6 hooks were corrected, among them big_image_size_threshold, wp_insert_post_data and wp_generate_attachment_metadata, 2 more signatures now list every argument, and the mistake notes changed on 56 entries. The
whatItDoestext changed on 55 entries, thewhenItFirestext on 53 and the example on 14. upload_size_limit was added. Each entry now has acalledInfield with the file, line and version that call the hook, and aurlthat opens that line on GitHub at the matching release tag. The 4 entries that were marked unverified are now verified, and duplicate groups were merged, leaving 10. - Block theme template hierarchy: the privacy policy chain now starts with privacy-policy.html and then follows the normal page chain. The attachment chain gained the MIME type templates (image-jpeg.html, for example) and the single-attachment templates, and the taxonomy chain gained taxonomy-{taxonomy}-{id}.html. The block theme check was corrected: WordPress looks for templates/index.html, and theme.json plays no part in it. In
classicDifferences, a point on hybrid themes was added and the two overlapping points on header and footer calls were merged. Two fields were added:childThemes(how a child theme's templates and its parent's are ranked) andhierarchyFilter(the filter that changes a chain). The description now says that templates saved in the database count too. - Image sizes cheat sheet: each core size in the JSON file now has an
editableInMediaSettingsfield, true for thumbnail, medium and large, the three sizes Settings → Media has fields for. The three WooCommerce rows (woocommerce_thumbnail, woocommerce_single and woocommerce_gallery_thumbnail) were checked against the WooCommerce 11.2.2 source and changed from"verified": falsetotrue(from no to yes in the CSV). Their notes were rewritten, as were the notes on thumbnail, medium_large, 1536x1536 and 2048x2048. The open-graph row no longer carries crop or verified values, because it is not a WordPress size, and the CSV note on it no longer claims that X wants the 1.91:1 ratio. -
All dataset files: the source and attribution URLs now end with a slash, the canonical form of each page. The three JSON files no longer carry a
$schemakey, which wrongly marked them as JSON Schema documents.