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
If you are running a large website where you will need to test new features on a seperate url before pushing them live then the following instructions are for you ;) | |
For this example imagine your url is apple.com and you want a development/staging site on a subdomain which is dev.apple.com | |
#Setup# | |
1. First thing you'll want to do is go ahead and create your website in plesk and add the subdomain dev.apple.com at the same time. | |
2. ssh into the server e.g. $ ssh username@ipaddress | |
3. Once logged in cd into the private directory (this will be where all git repos are stored) e.g. $ cd ~/private | |
4. Create the main repo e.g. $ git init --bare apple.git | |
5. Now to clone this new repo on your local machine. $ git clone ssh://username@ipaddres/~/private/apple.com |
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
// vanilla JavaScript | |
var links = document.links; | |
for (var i = 0, linksLength = links.length; i < linksLength; i++) { | |
if (links[i].hostname != window.location.hostname) { | |
links[i].target = '_blank'; | |
} | |
} | |
// or in jQuery |
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_action( 'woocommerce_cart_item_removed', 'my_plugin_remove_upsell_crossell', 10, 2); | |
function my_plugin_remove_upsell_crossell( $cart_item, $cart ) { | |
//GETTING SESSION ID PAIRS | |
$product_id_cart_item_pairs = WC()->session->get( 'product_id_cart_item_pairs', array() ); | |
$cart_item_product_pairs = WC()->session->get( 'cart_item_product_pairs', array() ); | |
// Get the product ID using session store | |
$product_id = isset( $product_id_cart_item_pairs[ $cart_item ] ) ? $product_id_cart_item_pairs[ $cart_item ] : false; | |
if ( ! $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 | |
/** | |
* Renaming join link table rendered via shortcode | |
* | |
*/ | |
remove_action('vczoom_meeting_before_shortcode', 'video_conference_zoom_shortcode_table', 10); | |
add_action( 'vczoom_meeting_before_shortcode', 'video_conference_zoom_shortcode', 10 ); | |
function video_conference_zoom_shortcode( $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
add_filter( 'ina_disabled_pages', 'ina_disbable_pages_posts_types' ); | |
function ina_disbable_pages_posts_types( $post_types ) { | |
$post_types[] = 'your_custom_post_type_name'; | |
return $post_types; | |
} |
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 this to your functions.php file | |
add_filter('ina_free_get_custom_post_types', function ( $post_type ) { | |
$post_type[] = 'your_custom_post_type_slug'; | |
return $post_type; | |
}); |
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
//Copy to your css file | |
//For changing Countdown cell background | |
.dpn-zvc-single-content-wrapper .dpn-zvc-sidebar-wrapper .dpn-zvc-timer .dpn-zvc-timer-cell { | |
background: #color_code; //For box background color | |
color: #color_code; //For text color | |
} | |
//For changing color of DETAILS section | |
.dpn-zvc-single-content-wrapper .dpn-zvc-sidebar-wrapper .dpn-zvc-sidebar-tile { |
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
//For Showing the custom variable in backend settings email text editor. | |
add_filter( 'vczapi_pro_admin_registration_confirmed_email_handles', 'vczapi_pro_registration_email_handles' ); | |
function vczapi_pro_registration_email_handles( $data ) { | |
$data['confirmation_email']['customer_email_address'] = __( 'Show Customer Email Address', 'theme-slug' ); | |
return $data; | |
} | |
//For Adding extra variables to your confirmation emails | |
add_filter( 'vczapi_pro_registration_confirmed_email_content', 'vczapi_pro_confirmed_email_content', 10, 5 ); |
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 | |
/** | |
* The Template for joining meeting via browser | |
* | |
* This template can be overridden by copying it to yourtheme/video-conferencing-zoom/join-web-browser.php. | |
* | |
* @package Video Conferencing with Zoom API/Templates | |
* @since 3.0.0 | |
* @modified 3.3.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
//NOTE: After adding below code - Goto wp-admin > Settings > Permalinks and hit save button to apply changes. | |
add_filter('vczapi_cpt_slug', 'vczapi_change_slug'); | |
function vczapi_change_slug() { | |
return 'custom-slug'; | |
} |
OlderNewer