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 | |
//change join via app text | |
add_filter('vczapi_join_meeting_via_app_text','change_join_via_app_text'); | |
function change_join_via_app_text($join_text){ | |
return 'Join Meeting'; | |
} | |
add_filter('vczapi_join_meeting_via_browser_text','change_join_via_broswer_text'); | |
function change_join_via_broswer_text($join_meeting_text){ | |
return 'Join via Browser'; |
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 show_only_authors_own_meetings( $query ) { | |
global $pagenow; | |
if ( 'edit.php' != $pagenow || ! $query->is_admin ) { | |
return false; | |
} | |
if ( $query->is_main_query() && $query->get( 'post_type' ) == 'zoom-meetings' ) { | |
$user = wp_get_current_user(); | |
$privileged_roles = [ 'administrator' ] |
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
add_filter( 'vczapi_wc_check_valid_deadline', '__return_false' ); |
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 | |
//this code is expected to be added in child theme or custom functions.php | |
add_action( 'woocommerce_order_status_cancelled_to_processing_notification', 'send_email_to_booking_host', 10, 2 ); | |
add_action( 'woocommerce_order_status_failed_to_processing_notification', 'send_email_to_booking_host', 10, 2 ); | |
add_action( 'woocommerce_order_status_on-hold_to_processing_notification', 'send_email_to_booking_host', 10, 2 ); | |
add_action( 'woocommerce_order_status_pending_to_processing_notification', 'send_email_to_booking_host', 10, 2 ); | |
add_action( 'woocommerce_order_status_completed_notification', 'send_email_to_booking_host', 10, 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 | |
/** | |
* @author Deepen. | |
* @created_on 11/29/19 | |
*/ | |
global $zoom_meetings; | |
?> | |
<a href="<?php echo $zoom_meetings->join_url; ?>" title="Join Meeting">Join Meeting</a> |
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( 'pre_get_posts', 'show_only_authors_own_meetings' ); | |
function show_only_authors_own_meetings( $query ) { | |
global $pagenow; | |
if ( 'edit.php' != $pagenow || ! $query->is_admin ) { | |
return false; | |
} | |
if ( $query->is_main_query() && $query->get( 'post_type' ) == 'zoom-meetings' ) { |
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 ($) { | |
var digthisAddClassToElement = function (element) { | |
//cache the DOM | |
//use the element send through function as the dom element | |
var $element = $(element); | |
//scoped helper functions | |
var isInViewport = function (elem) { | |
var bounding = elem.getBoundingClientRect(); | |
return ( |
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
<form class="digthis-multi-upload-form" action="" method="post" enctype="multipart/form-data"> | |
<div> | |
<label for="title">Title</label> | |
<input type="text" id="title" name="title" required> | |
</div> | |
<div> | |
<label for="content">Content</label> | |
<textarea id="content" name="content" required></textarea> | |
</div> |
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( 'woocommerce_after_checkout_validation', 'digthis_two_step_checkout_validate', 9999, 2 ); | |
function digthis_two_step_checkout_validate( $data, $errors ) { | |
$step = filter_input( INPUT_POST, 'current_step' ); | |
if ( empty( $errors->errors ) && $step == 'step-1' ) { | |
$errors->add( 'digthis', __( '<span id="digthis-prevent-error">Digthis Error</span>', 'woocommerce' ) ); | |
} |
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 enqueue_media_uploader() | |
{ | |
wp_enqueue_media(); | |
} | |
add_action("admin_enqueue_scripts", "enqueue_media_uploader"); |