Related tutorial: https://code64.de/visionerdy/wordpress-backups/
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
/********************************** | |
* | |
* Move WooCommerce Price on Single Product Page | |
* | |
* @author AlphaBlossom / Tony Eppright | |
* @link http://www.alphablossom.com | |
* | |
* Reference hook locations using woocommerce_single_product_summary hook | |
* | |
* @hooked woocommerce_template_single_title – 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
add_action('wp_head','pluginname_ajaxurl'); | |
function pluginname_ajaxurl() { | |
?> | |
<script type="text/javascript"> | |
var ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>'; | |
</script> | |
<?php | |
} | |
//functions.php code |
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
# wordpress-seo provides ability to edit meta information and provides sitemap. | |
# w3-total-cache provides advanced caching no matter the server technology available. | |
# better-wp-security provides brute force protection and a number of WordPress enhancements. | |
# google-analytics-for-wordpress provides robust Google Analytics integration through the Google API. | |
# redirection detects 404s and 301s and allows admins to set up redirects in the WP admin. | |
# ewww-image-optimizer provides automatic optimization of uploaded images with local libraries instead of cloud-based services. | |
# backupwordpress simple backup solution that can store backups above web root. | |
# relevanssi provides better site search using a local index. | |
# cloudflare is the best. Free automatic CDN and security solution. | |
# jarvis is a quick search for the WordPress admin. Indespensible. |
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/bash | |
cd _seed | |
FILENAME=$(find . -maxdepth 1 -name [a-zA-Z0-9]*-migrate-[0-9]*.sql.gz) | |
gunzip ${FILENAME} -c > temp.sql | |
read -p "New Domain Name e.g. http://example.com: " replacement | |
cat temp.sql | sed -e "s@##DEV_URL##@${replacement}@g" > temp2.sql | |
cat temp2.sql | sed -e "s@##DEV_PATH##@${replacement}@g" > new_db.sql |
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
require 'slack-ruby-client' # first, make sure you do: gem install slack-ruby-client | |
require 'date' | |
# Add your Slack API token here | |
token = [YOUR TOKEN HERE] | |
Slack.configure do |config| | |
config.token = token | |
end |