This file contains 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 | |
/* Adding Column on View Bookings */ | |
function bkap_view_booking_columns( $columns ) { | |
$additional_columns = array( 'bkap_invoice' => __( 'Invoice', 'woocommerce-booking' ), 'bkap_delivery' => __( 'Delivery', 'woocommerce-booking' ), 'bkap_customer_address' => __( 'Customer Address', 'woocommerce-booking' ) ); | |
// Adding column after Booked by hence 5. | |
$columns = array_slice( $columns, 0, 5, true ) + $additional_columns + array_slice( $columns, 5, count( $columns ) - 5, true ); |
This file contains 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 dequeue_jquery_scripts() { | |
wp_dequeue_script( 'jquery' ); | |
wp_dequeue_script( 'jquery-ui' ); | |
wp_dequeue_script( 'jquery-ui-datepicker' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'dequeue_jquery_scripts', 100 ); |
This file contains 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 | |
add_filter( 'bkap_final_price_json_data', 'custom_changes', 10, 3 ); | |
function custom_changes( $wp_send_json, $product_id, $price ) { | |
$wp_send_json['bkap_price'] = $wp_send_json['bkap_price'] . ' ' . __( '20% off for selected period', 'woocommerce-booking' ); | |
return $wp_send_json; | |
} |
This file contains 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 | |
/* Adding the custom infromation in the cart item */ | |
function add_custom_info_to_cart_item( $cart_item_meta, $product_id ) { | |
$cart_item_meta['custom_information'] = 'This is my <strong>custom</strong> information.<br> Please contact support for more information'; | |
return $cart_item_meta; | |
} | |
add_filter( 'woocommerce_add_cart_item_data', 'add_custom_info_to_cart_item', 25, 2 ); |
This file contains 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 | |
/** | |
* Plugin Name: Zoom OAuth Demo | |
* Plugin URI: http://www.tychesoftwares.com/ | |
* Description: This plugin is for showing the demo for Zoom Connection via OAuth. | |
* Version: 1.0 | |
* Author: Tyche Softwares | |
* Author URI: http://www.tychesoftwares.com/ | |
* Text Domain: zoom-oauth-remo | |
* Domain Path: /i18n/languages/ |
This file contains 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 vendor_init_emails( $email ) { | |
if ( ! isset( $emails['RSA_Email_Booking_Confirmed_Vendor'] ) ) { | |
$emails['RSA_Email_Booking_Confirmed_Vendor'] = include_once BKAP_PLUGIN_PATH . '/emails/vendor-booking-confirmed.php'; // this will be the patch where your file is located. | |
} | |
return $emails; | |
} | |
add_filter( 'woocommerce_email_classes', 'vendor_init_emails', 10, 1 ); |
This file contains 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 bkap_show_hide_persons_based_on_date( $data ) { | |
$persons_to_hide = array( | |
'84217' => array( // 84217 is product id | |
array( | |
'dates' => '2023-06-25,2023-06-22', // in Y-m-d format. | |
'person_ids' => array( 84226, 84227 ), // 84226, 84227 are persons ids to hide | |
), | |
array( |
This file contains 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 | |
/** | |
* Plugin Name: Vue Settings Page Plugin | |
* Description: A WordPress plugin that adds a settings page with two tabs using Vue.js. | |
* Version: 1.0.0 |
This file contains 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 | |
add_filter( 'wcs_renewal_order_created', 'test_change_renewal_order_price', 10, 2 ); | |
function test_change_renewal_order_price( $renewal_order, $subscription ) { | |
// Get the line item for the subscription product | |
$line_items = $renewal_order->get_items(); | |
foreach( $line_items as $line_item ) { |
This file contains 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
[ | |
[ | |
{ | |
"date": "2022-12-27", | |
"start_time": "10:00", | |
"end_time": "12:00", | |
"availability": 10 | |
} | |
{ | |
"date": "2022-12-27", |
NewerOlder