Skip to content

Commit

Permalink
Add an action gp_after_project_form_fields to enable additional field…
Browse files Browse the repository at this point in the history
…s to be added (#1522)

* Add an action gp_after_project_form_fields to enable additional fields to be added

* Update gp-templates/project-form.php

* Update gp-templates/project-form.php

* Update gp-templates/project-form.php

* Remove whitespace at end of line

Co-authored-by: Alex Kirk <akirk@users.noreply.github.com>
  • Loading branch information
2ndkauboy and akirk committed Dec 14, 2022
1 parent 51b390d commit 2888a92
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions gp-templates/project-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@
<dd><?php echo gp_projects_dropdown( 'project[parent_project_id]', $project->parent_project_id, array(), $project->id ); ?></dd>

<dt><label for="project[active]"><?php _e( 'Active', 'glotpress' ); ?></label> <input type="checkbox" id="project[active]" name="project[active]" <?php gp_checked( $project->active ); ?> /></dt>

<?php
/**
* Fires after the default project form fields.
*
* @since 4.0.0
*
* @param GP_Project $project The project being reendered.
*/
do_action( 'gp_after_project_form_fields', $project );
?>
</dl>

<?php echo gp_js_focus_on( 'project[name]' ); ?>

0 comments on commit 2888a92

Please sign in to comment.