adding custom select boxes in the donation form #7821
Unanswered
developtogetherpk
asked this question in
Developer Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have added 3 custom select boxes in the donation form using this code snippet:
add_action('givewp_donation_form_schema', function ($form) {
// Ensure the GiveWP FieldsAPI is loaded
if (!class_exists('Give\Framework\FieldsAPI\Select')) {
error_log('GiveWP Select class not found!');
return;
}
});
this added select boxes under the email input. now I want to move the select boxes under the donation levels, for this purpose I tried this code snippet:
add_action('give_fields_after_donation_levels', function ($collection) {
// Ensure the GiveWP FieldsAPI is loaded
if (!class_exists('Give\Framework\FieldsAPI\Select')) {
error_log('GiveWP Select class not found!');
return;
}
});
but this code is not working and I don't know what I am missing. can anyone help me to resolve this problem
Beta Was this translation helpful? Give feedback.
All reactions