This should help you completely uninstall Sendmail and all that comes with it.
First, stop the service (assuming it's running).
sudo /etc/init.d/sendmail stop
Uninstall sendmail and sendmail-bin
var gulp = require('gulp'); | |
var bs = require('browser-sync').create(); | |
var reload = bs.reload; | |
// watch files for changes and reload | |
gulp.task('watch', function(gulpCallback) { | |
// bs.init | |
bs.init({ | |
proxy: "example.dev" |
<?php | |
// Stop TinyMCE cleaning HTML code | |
function myformatTinyMCE($in) { | |
$in['verify_html']=false; | |
return $in; | |
} | |
add_filter('tiny_mce_before_init', 'myformatTinyMCE' ); | |
?> |
Here is a list of scopes to use in Sublime Text 2 snippets - | |
ActionScript: source.actionscript.2 | |
AppleScript: source.applescript | |
ASP: source.asp | |
Batch FIle: source.dosbatch | |
C#: source.cs | |
C++: source.c++ | |
Clojure: source.clojure | |
CoffeeScript: source.coffee |
// Add to your Wordpress Theme's functions.php | |
// Remove All Yoast HTML Comments | |
// https://gist.github.com/paulcollett/4c81c4f6eb85334ba076 | |
if (defined('WPSEO_VERSION')){ | |
add_action('get_header',function (){ ob_start(function ($o){ | |
return preg_replace('/\n?<.*?yoast.*?>/mi','',$o); }); }); | |
add_action('wp_head',function (){ ob_end_flush(); }, 999); | |
} |
// Clean wp_head from junk | |
add_action('after_setup_theme', 'start_cleanup'); | |
function start_cleanup() { | |
// Initialize the cleanup | |
add_action('init', 'cleanup_head'); | |
} | |
// WordPress cleanup function | |
function cleanup_head() { | |
remove_action('wp_head', 'rsd_link'); // EditURI link |
<?php | |
/** | |
* Plugin Name: Extend a plugin | |
* Version: 0.0.1 | |
* Author: Jonathan Bardo | |
* License: GPLv2+ | |
* Author URI: http://jonathanbardo.com | |
*/ | |
class Test extends Date_Range_Filter { |
// Minimum Order Amount - from 3000 | |
add_action( 'woocommerce_checkout_process', 'wc_minimum_order_amount' ); | |
add_action( 'woocommerce_before_cart' , 'wc_minimum_order_amount' ); | |
function wc_minimum_order_amount() { | |
// Set this variable to specify a minimum order value | |
$minimum = 3000; | |
if ( WC()->cart->total < $minimum ) { |
/** | |
* Code goes in functions.php or a custom plugin. Replace XX with the country code your changing. | |
*/ | |
add_filter( 'woocommerce_states', 'custom_woocommerce_states' ); | |
function custom_woocommerce_states( $states ) { | |
$states['XX'] = array( | |
'XX1' => 'State 1', | |
'XX2' => 'State 2' |