This file contains hidden or 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 | |
// Copy files from remote server. | |
// https://stackoverflow.com/questions/9843933/copy-file-from-remote-server-or-url | |
$file = 'SOURCE_URL'; | |
$newfile = $_SERVER['DOCUMENT_ROOT'] . '/wp-content/ai1wm-backups/DIRECTORY_FIILE_NAME__WITH_EXTAINSION'; | |
if ( copy ( $file, $newfile ) ) { | |
echo "Copy success!"; | |
} else { |
This file contains hidden or 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 | |
/** | |
* @snippet Add Script @ WooCommerce Thank You Page | |
* @endpoint happydesk.net/checkout/order-received/ (replace with your domain) | |
* @testedwith WooCommerce 5 | |
*/ | |
add_action( 'woocommerce_thankyou', 'happydesk_conversion_tracking_thank_you_page' ); | |
This file contains hidden or 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 | |
// There's also a standalone version, no Visual Composer required, purely as a shortcode here https://gist.github.com/Jany-M/d3014a7039c884a8bbd8e8271cfcd982 | |
if( class_exists( 'WPBakeryShortCode' ) && !class_exists( 'vcMUloop' ) ) { | |
class vcMUloop extends WPBakeryShortCode { | |
function __construct() { | |
add_action( 'init', array( $this, 'vc_multisite_mapping' ) ); |
NewerOlder