Open leoauri opened 6 years ago
@leoauri when serving headlessly, the vue app will be completely decoupled from the wordpress server. i.e. the wp-content/themes/vuewp/app/dist
directory is served. all interactions between the frontend and the wordpress server happens solely via REST api. For action hooks, you might want check out https://v2.wp-api.org/extending/hooks/
to answer your questions:
index.html
is not generated based on index.php
I'm still trying to follow everything here, but it seems that when served as WP theme we load index.php, so action hooks in header.php and so on are triggered, but when served headlessly we load index.html... No WP action hooks...
Actually I noticed when modifying index.php, wondering why nothing was changing :)
Sorry if I'm still missing something... And thanks 👍👍