fields ) ) { Post::init(); $fields = array( 'id' => function() { return ! empty( $this->wc_data->get_id() ) ? Relay::toGlobalId( 'shop_order_refund', $this->wc_data->get_id() ) : null; }, 'title' => function() { return ! empty( $this->wc_data->get_post_title() ) ? $this->wc_data->get_post_title() : null; }, 'amount' => function() { return ! empty( $this->wc_data->get_amount() ) ? $this->wc_data->get_amount() : null; }, 'reason' => function() { return ! empty( $this->wc_data->get_reason() ) ? $this->wc_data->get_reason() : null; }, 'refunded_by_id' => array( 'callback' => function() { return ! empty( $this->wc_data->get_refunded_by() ) ? $this->wc_data->get_refunded_by() : null; }, 'capability' => 'list_users', ), ); $this->fields = array_merge( $this->fields, $fields ); } } }