How add custom chexkbox to form
-
How correct way to add a custom chebox using the hoock give_fields_donation_form_after_personal_info? I using function give_field, but a getting a fatal error. I using the code below:
add_action( 'give_fields_donation_form_after_personal_info', function( $group ) {
? ? $group->append(
? ? ? ? give_field( 'text', 'giv-doc' )
? ? ? ? ? ? ->showInReceipt()
? ? ? ? ? ? ->minLength(2)
? ? ? ? ? ? ->label( __( 'Documento' ))
? ? ? ? ? ? ->maxLength(30)
? ? ? ? ? ? ->placeholder('CPF/CNPJ/Passaporte')
? ? ? ? ? ? ->storeAsDonorMeta()
? ? ? ? ? ? ->required()
? ? ? ? ? ? ->helpText( __( 'Documento de identifica??o CPF/CNPJ/Passaporte' ) )
? ? );
? ? $group->append(
? ? ? ? give_field( 'checkbox', 'email_authorization' )
? ? ? ? ->label( __( 'eu autorizo receber comunica??es sobre minhas doa??es' ))
? ? );
});
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.