Skip to content
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

Merged
merged 6 commits into from
Dec 14, 2022

Conversation

2ndkauboy
Copy link
Contributor

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.

Copy link
Member

@akirk akirk left a 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!

akirk
akirk previously approved these changes Dec 14, 2022
Copy link
Member

@akirk akirk left a 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.

akirk
akirk previously approved these changes Dec 14, 2022
@akirk akirk merged commit 2888a92 into GlotPress:develop Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make it easier to extend templates
3 participants