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
#/usr/bin/env sh | |
# Date | |
DATE=`date +%Y-%m-%d_%H:%M:%S` | |
# Get the ZoneID from: https://www.cloudflare.com/a/overview/<your-domain> | |
DNS_ZONE=YOUR_ZONE_ID_HERE | |
# Get the existing identifier for DNS entry: | |
# https://api.cloudflare.com/#dns-records-for-a-zone-list-dns-records |
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
// Override woocommerce templates with the templates in my plugin | |
add_filter( 'woocommerce_locate_template', 'custom_plugin_templates'); | |
function custom_plugin_templates ( $template, $template_name, $template_path ) { | |
$check_dis = str_replace('woocommerce', 'your-plugin-name-goes-here/woocommerce', $template); | |
if(file_exists($check_dis)) { | |
$template = $check_dis; | |
} | |
return $template; | |
}; |
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
#!/bin/sh | |
THESITENAME="" | |
THEDB="" | |
THEDBUSER="" | |
THEDBPW="" | |
THEDATE=`date +%d%m%y%H%M` | |
# There is a space between the first `/` and the rest of the path in this variable | |
# It needs to be there for the TAR command to work for some reason | |
SITE_PATH="/ var/www/" |
OlderNewer