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_action('vczoom_jbh_before_content','cm_2022_hide_meeting_info_badge'); | |
function cm_2022_hide_meeting_info_badge(){ | |
?> | |
<style> | |
.meeting-info-icon__icon-wrap{ | |
display:none; | |
} | |
</style> |
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 | |
/** | |
* Customer booking reminder email. | |
* | |
* This template can be overridden by copying it to yourtheme/woocommerce-bookings/emails/customer-booking-reminder.php | |
* | |
* HOWEVER, on occasion WooCommerce will need to update template files and you | |
* (the theme developer) will need to copy the new files to your theme to | |
* maintain compatibility. We try to do this as little as possible, but it does | |
* happen. When this occurs the version of the template file will be bumped and |
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 cm_zoom_mod_20211016() { | |
?> | |
<style> | |
.vczapi-zoom-browser-meeting--info { | |
display: none; | |
} | |
#zmmtg-root .meeting-title { | |
display: none; |
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 vczapi_wp_29092021_redirect_after_registration() { | |
//you will need to change this to the page you want to redirect to | |
$site_url = get_site_url(); | |
?> | |
<script> | |
(function ($) { | |
$('html').on('vczapi_pro_user_registered', function () { | |
window.location.href = '<?php echo $site_url; ?>'; | |
}); |
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
.product-type-appointment .price .woocommerce-Price-amount { | |
display: none; | |
} | |
.product-type-appointment .price .duration { | |
display: none; | |
} |
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
<!DOCTYPE html> | |
<html <?php language_attributes(); ?>> | |
<head> | |
<meta charset="<?php bloginfo( 'charset' ); ?>"/> | |
<?php | |
wp_head(); | |
$tree = WP_Theme_JSON_Resolver_Gutenberg::get_merged_data( array(), 'theme' ); | |
$default_layout = _wp_array_get( $tree->get_settings(), array( 'layout' ) ); | |
$layout_style = gutenberg_get_layout_style( '.custom-wp-blocks-container', $default_layout ); | |
echo '<style>' . $layout_style . '</style>'; |
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 cm_change_meeting_link_for_purchasable_product( $response, $post_id ) { | |
$woocommerce_fields = get_post_meta( $post_id, '_meeting_fields_woocommerce', true ); | |
$zoom_prodcut_id = get_post_meta( $post_id, '_vczapi_zoom_product_id', true ); | |
if ( $woocommerce_fields['enable_woocommerce'] && $zoom_prodcut_id ) { | |
//uncomment to link to product page | |
//$response['meetingLink'] = '<a href="'.get_permalink($zoom_prodcut_id).'">Buy Now</a>'; | |
$buy_now_link = add_query_arg( [ | |
'add-to-cart' => $zoom_prodcut_id | |
], wc_get_cart_url() ); |
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 change_vczapi_buy_now_text( $buy_now_text ) { | |
$buy_now_text = 'Text to be changed'; | |
return $buy_now_text; | |
} | |
add_filter( 'vczapi_buy_now_text', 'change_vczapi_buy_now_text' ); |
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 | |
//must flush permalinks after code is added admin menu > settings > permalinks save | |
add_filter('vczapi_cpt_slug','cm_change_zoom_meetings_slug'); | |
function cm_change_zoom_meetings_slug(){ | |
return 'my-meetings'; | |
} |