Created
July 7, 2016 07:56
-
-
Save remcotolsma/7b991cbca3783e6d71860e83a9b28eb1 to your computer and use it in GitHub Desktop.
Proof of concept Pronamic iDEAL Booking Calendar support.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function pronamic_ideal_booking_settings() { | |
echo 'Pronamic iDEAL'; | |
} | |
add_bk_action( 'wpdev_bk_payment_show_tab_in_top_settings', 'pronamic_ideal_booking_settings'); | |
function pronamic_ideal_booking_payment_form( $blank, $booking_id, $summ,$bk_title, $booking_days_count, $booking_type, $bkform, $wp_nonce, $is_deposit ) { | |
$output = wpdev_bk_define_payment_form_bank_transfer( $blank, $booking_id, $summ,$bk_title, $booking_days_count, $booking_type, $bkform, $wp_nonce, $is_deposit ); | |
$output .= 'Pronamic iDEAL'; | |
return $output; | |
} | |
add_bk_filter('wpdev_bk_define_payment_form_bank_transfer', 'pronamic_ideal_booking_payment_form'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment