vj2k
Forum Replies Created
-
Hi Eric,
Any Update on this. If i sort this I can go Live 🙂
Vijay
Hi Eric,
Any development on this.
Vijay
Hi,
Posted the Custnm Codeadd_Swimmer_name_Wp_Charitable.php
add_Batch_Name_WP_Charitable.php
add_Mode-of_Payment_WP_Charitable.php
USerId: vj2k
Vijay
- This reply was modified 9 years, 1 month ago by vj2k.
Hi Eric,
The export works without Custom fields but is there any way we could get the export with custom fields
Vijay
Hi Eric,
I tried this code
function get_myposttype_options($argument) {
$get_post_args = array(
‘post_type’ => $argument,
‘posts_per_page’ => -1
);$options = array();
foreach ( get_posts( $get_post_args ) as $post ) {
$title = get_the_title( $post->ID );$options[] = array(
$title => $title,);
}return $options;
}function ed_collect_swimmer_name( $fields, Charitable_Donation_Form $form ) {
$fields[‘swimmer_name’] = array(
‘label’ => __( ‘swimmer Name’, ‘your-namespace’ ),
‘type’ => ‘select’,
‘priority’ => 24,
‘value’ => $form->get_user_value( ‘donor_swimmer_name’ ),
‘options’ => get_myposttype_options(‘swimmer’),
‘required’ => true,
‘data_type’ => ‘user’
);
return $fields;
}add_filter( ‘charitable_donation_form_user_fields’, ‘ed_collect_swimmer_name’, 10, 2 );
/**The drop down works but there is a number before each name 🙂
Rest is perfect.
VijayHi,
Am unable to fathom how to change the Your Donation text
Vijay