View autocomplete-mods.css
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
.aa-List .aa-ItemContent .aa-ItemIcon{ display: none } | |
.aa-List .aa-ItemContent{ grid-template-columns: 1fr } |
View VCZAPIBookingsMod.php
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 | |
namespace Codemanas\VczapiBookingsMod; | |
class VCZAPIBookingsMod { | |
public static $instance = null; | |
public static function get_instance() { | |
return is_null( self::$instance ) ? self::$instance = new self() : self::$instance; | |
} |
View functions.php
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( 'vczapi-woocommerce-appointments-meeting-topic', 'change_appointment_topic', 10, 3 ); | |
function change_appointment_topic( $topic, $product_id, $appointment_id ) { | |
$topic = 'Appointment - ' . $appointment_id; | |
return $topic; | |
} |
View functions.php
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_20220801_add_zoom_link_to_ics( $ics_a, $appointment, $object ) { | |
$appointment_id = $appointment->get_id(); | |
$meeting_details = json_decode( get_post_meta( $appointment_id, '_vczapi_woocommerce_appointments_meeting_details', true ) ); | |
if ( empty( $meeting_details ) ) { | |
return $ics_a; | |
} |
View functions.php
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_220801_modified_gcal_sync( $data, $appointment ) { | |
remove_filter( 'woocommerce_appointments_gcal_sync', 'cm_220801_modified_gcal_sync' ); | |
$data = ''; | |
$appointment_id = $appointment->get_id(); | |
$meeting_details = get_post_meta( $appointment_id, '_vczapi_woocommerce_appointments_meeting_details', true ); | |
if ( ! empty( $meeting_details ) ) { | |
$meeting = json_decode( $meeting_details ); | |
if ( is_object( $meeting ) ) { |
View main.js
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
(function($){ | |
document.addEventListener('tsfwc_search_state_changed', function (e) { | |
console.log('event',e.detail); | |
}) | |
//jquery | |
$(document).on('click','.hit-content a',function(){ | |
console.log(window.tsfwcSearchState); | |
}) |
View functions.php
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_2022_04_08_change_recording_display( $display_date_time,$start_time, $timezone){ | |
return vczapi_dateConverter($start_time,$timezone,'F j, Y',false); | |
} | |
add_filter('vczapi_wc_recording_start_time','cm_2022_04_08_change_recording_display',10,3); |
View functions.php
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_tsfwc_20220404_skip_product_category( $formatted_data, $raw_data, $object_id ) { | |
$categories = get_the_terms( $raw_data->get_id(), 'product_cat' ); | |
$category_names = []; | |
if ( ! empty( $categories ) ) { | |
foreach ( $categories as $category ) { | |
$parents_ids = get_ancestors( $category->term_id, 'product_cat' ); | |
array_unshift( $parents_ids, $category->term_id ); | |
foreach ( $parents_ids as $parent_id ) { | |
//replace 29 with the id of product category you do not want to index |
View main.js
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
(function ($) { | |
document.addEventListener('cmswt_search_state_changed', function (e) { | |
console.log('event',e.detail); | |
}) | |
//jquery | |
$(document).on('click','.hit-content a',function(){ | |
console.log(window.SearchWithTypesenseState); | |
}) |
View wpml-compat.php
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
public function add_lang_facet( $formatted_data, $raw_data, $object_id ) { | |
//wpml compatibility check | |
$args = [ 'element_id' => $object_id, 'element_type' => 'post_id' ]; | |
$language = apply_filters( 'wpml_element_language_code', null, $args ); | |
if ( $language !== null ) { | |
$formatted_data['lang_attribute_filter'] = [ $language ]; | |
} | |
return $formatted_data; | |
} |
NewerOlder