- Download getcomposer.org/composer.phar to your account's home directory —
/home/username
. - Edit
.bashrc
file in same directory by addingalias composer='/usr/local/php56/bin/php-cli ~/composer.phar'
line. Updatephp56
part to current relevant version, if necessary. - Restart SSH session or run
source ~/.bashrc
to reload config. - Use
composer
command!
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
name: CD | |
on: | |
push: | |
branches: [ production ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: |
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 | |
remove_action( 'woocommerce_order_item_meta_end', [ | |
\Codemanas\ZoomWooCommerceAddon\Orders::get_instance(), | |
'email_meeting_details' | |
], 20 ); | |
add_action( 'woocommerce_order_item_meta_end', 'reshape_zoom_order_item_meta', 20, 3 ); | |
function reshape_zoom_order_item_meta( $item_id, $item, $order ) { | |
if ( $order->get_status() === "completed" || $order->get_status() === "processing" ) { | |
$product_id = $item['product_id']; |
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('ina_limit_msg', 'ina_addon_limit_message'); | |
function ina_addon_limit_message($msg) { | |
return "If you think your account has been compromised, this custom message will save you."; | |
} |
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 this to your functions.php in your active theme. | |
add_filter( 'vczapi_woo_addon_meeting_title', 'vczapi_woo_addon_meeting_title_20220628', 10, 4 ); | |
function vczapi_woo_addon_meeting_title_20220628( $text, $booking_id, $product_id, $host_id ) { | |
$booking = get_wc_booking( $booking_id ); | |
$customer_name = $booking->get_customer()->name; | |
if ( ! empty( $customer_name ) ) { | |
return "Booking Session by " . $customer_name . " for " . get_the_title( $product_id ) . '-' . $booking_id; | |
} else { |
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( 'woocommerce_email_order_details', 'email_order_details_20221128', 1, 4 ); | |
function email_order_details_20221128( $order, $sent_to_admin, $plain_text, $email ) { | |
$GLOBALS['zoom_sent_to_admin'] = $sent_to_admin; | |
} | |
add_action( 'vczapi_woocommerce_order_item_meta', 'custom_order_meta_20221128', 99, 4 ); | |
function custom_order_meta_20221128( $content, $item_id, $item, $order ) { | |
$sent_to_admin = ! empty( $GLOBALS['zoom_sent_to_admin'] ) ? $GLOBALS['zoom_sent_to_admin'] : 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
add_filter('vczapi_pro_registration_confirm_title', 'change_confirmation_title_20221128', 10, 2); | |
function change_confirmation_title_20221128( $topic, $details ) { | |
return 'Your title'; | |
} |
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
//Paste below code to your theme's functions.php file | |
// Change 'your-desired-page' to something you want to redirect to | |
add_action('template_redirect', 'vczapi_redirect_archive_cpt'); | |
function vczapi_redirect_archive_cpt() | |
{ | |
if (is_post_type_archive('zoom-meetings')) { | |
wp_redirect('/your-desired-page', 301); | |
exit; | |
} | |
} |
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 | |
/** | |
* Only show upcoming meetings | |
*/ | |
?> | |
<table id="vczapi-show-meetings-list-table" class="vczapi-user-meeting-list"> | |
<thead> | |
<tr> | |
<th><?php _e( 'Topic', 'video-conferencing-with-zoom-api' ); ?></th> | |
<th><?php _e( 'Meeting Status', 'video-conferencing-with-zoom-api' ); ?></th> |
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_woocommerce_check_deadline_crossed_meeting_date', 'vczapi_deadline_check', 20 ); | |
/** | |
* @param $meeting_date DateTime | |
* | |
* @return mixed | |
*/ | |
function vczapi_deadline_check( $meeting_date ) { | |
if ( ! empty( $meeting_date ) ) { | |
$timezone = $meeting_date->getTimezone()->getName(); | |
$current_date = vczapi_dateConverter( 'now', $timezone, false ); |
NewerOlder