Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
wp-pay-extension unselect choices filter
<?php
//...
$unselect_choices = gf_apply_filters(
[
'pronamic_pay_unselect_choices',
$form_id,
$this->id
],
!$page || ('form_editor' !== $page && false === strpos($page, 'form_settings')),
$page
);
if ($unselect_choices) {
$choices = array_filter($choices, array($this, 'filter_choice_is_selected'));
$choices = array_map(array($this, 'unselect_choice'), $choices);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.