-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an action gp_after_project_form_fields to enable additional fields to be added #1522
Add an action gp_after_project_form_fields to enable additional fields to be added #1522
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In our PR review in the glotpress chat we agreed that this can move forward, we'd just like the $project
to be added as a parameter. Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok to merge now.
What?
This PR introduces a new action
gp_after_project_form_fields
with developers can use to add additional form fields to GlotPress projects.Why?
Currently, plugins extending GlotPress need to override the whole template file in order to add additional form fields. This new action would allow them to easily place them after the default fields.
How?
This PR closes #969
When the project form is submitted, the additional form fields can be saved as described in the issue.