You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You'd also need a hook on the route to be able to do something with the added fields, as otherwise they would just be dropped when the project was saved to the database.
The action to add some additional fields would have helped a lot to avoid overwriting the whole template. At least with the gp_tmpl_load_locations it was fortunately possible to add such a template, but only using array_unshift to move the custom directory to the front of the list.
Right now there's no easy way to edit templates like the project edit form (https://github.com/GlotPress/GlotPress-WP/blob/99d0799ab378d16eb0c5cb63be0fead7f06c201d/gp-templates/project-form.php) without completely overriding the templates on your site.
An action hook in
project-form.php
to allow plugins to print additional settings fields would already be of great help.The text was updated successfully, but these errors were encountered: