Skip to content

Commit

Permalink
feat: add checkbox label setting
Browse files Browse the repository at this point in the history
  • Loading branch information
codepuncher committed Jul 24, 2023
1 parent dbde18f commit 17fbab0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/GiftAidField.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public function get_form_editor_field_settings(): array
'error_message_setting',
'css_class_setting',
'conditional_logic_field_setting',
'checkbox_label_setting',
];
}

Expand Down Expand Up @@ -73,7 +74,7 @@ class="gfield-choice-input"
value="Yes"
>
<label for="gift-check-<?php echo esc_attr($id); ?>">
<?php echo esc_html($this->label); ?>
<?php echo esc_html($this->checkboxLabel); ?>
</label>
</div>
</div>
Expand Down

0 comments on commit 17fbab0

Please sign in to comment.