Add the "Add Contributors" input to the form

This commit is contained in:
Kelly Dwan 2019-11-13 13:19:43 -05:00
parent eacd2bf3f2
commit aa79c8147e
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D
4 changed files with 21 additions and 6 deletions

View file

@ -155,7 +155,8 @@ function render_form_manage() {
$updated = false;
// @todo Get pledge ID from somewhere.
$data = PledgeMeta\get_pledge_meta();
$data = PledgeMeta\get_pledge_meta();
$is_manage = true;
if ( 'Update Pledge' === $action ) {
$processed = process_form_manage();

View file

@ -203,6 +203,7 @@ function add_meta_boxes() {
*/
function render_meta_boxes( $pledge, $box ) {
$readonly = ! current_user_can( 'edit_page', $pledge->ID );
$is_manage = true;
$data = array();
foreach ( get_pledge_meta_config() as $key => $config ) {