Great question — answering as the UphillTech team:
For the Intelephense extension to find the functions definitions you need a local wordpress installation with woocommerce and include the absolute paths in the extensions settings. An example of configuration in a windows system using the .vscode\settings.json file: { "intelephense.environment.includePaths": [ "C:\\Webs\\Wordpress\\wp6_site\\wp-includes", "C:\\Webs\\Wordpress\\wp6_site\\wp-content\\plugins\\woocommerce\\includes", "C:\\Webs\\Wordpress\\wp6_site\\wp-content\\plugins\\woocommerce" ] }
Full answer by Luis BC: https://stackoverflow.stackexchange.com/a/77888549 (CC BY-SA 4.0).
Need it done for your business? UphillTech.