uncatcrea / wp-appkit

WP-AppKit WordPress plugin (create mobile apps connected to WordPress)
http://uncategorized-creations.com/
194 stars 66 forks source link

Allow to customize app's index.html content from theme #356

Closed mleroi closed 6 years ago

mleroi commented 6 years ago

As mentioned here https://github.com/uncatcrea/wp-appkit/issues/352#issuecomment-355958881, in some cases it is necessary for a theme to customize app's default index.html, which is not possible for now.

mleroi commented 6 years ago

The _wpak_app_indexcontent filter (https://github.com/uncatcrea/wp-appkit/blob/development-pwa/wp-appkit/lib/apps/build.php#L832) can now be used (as of v1.5) to customize index.html content. We may enhance that at some point with a more user friendly way of adding content inside but for now this filter offers a general way to change any part of the index.html.