I hereby claim:
- I am michaelmusgrove on github.
- I am musgrove (https://keybase.io/musgrove) on keybase.
- I have a public key ASBEzMlyXpizttxxKX5J63FKFWjmjtUoFBjv3_sNzPcLcgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
add_filter( ‘avatar_defaults’, ‘newgravatar’ ); | |
function newgravatar ($avatar_defaults) { | |
$myavatar = get_bloginfo(‘template_directory’) . ‘/images/gravataricon.gif’,‘/images/gravataricon.gif1’,‘/images/gravataricon.gif2’,‘/images/gravataricon.gif3’,‘/images/gravataricon.gif4’; | |
$avatar_defaults[$myavatar] = "webdesignPOP"; | |
return $avatar_defaults; | |
} |
function my_home_category( $query ) { if ( $query->is_home() && $query->is_main_query() ) { $query->set( 'cat', '11'); } } add_action( 'pre_get_posts', 'my_home_category' ); |
<?php | |
/* | |
* Hide coupon notice on the checkout page if a coupon has been applied in cart | |
*/ | |
add_filter( 'woocommerce_coupons_enabled', 'woocommerce_coupons_enabled_checkout' ); | |
function woocommerce_coupons_enabled_checkout( $coupons_enabled ) { | |
global $woocommerce; | |
[responsive]<img src="image_url" alt="alt" title="title" />[/responsive] |
add_filter('upload_mimes', 'my_upload_mimes'); | |
function my_upload_mimes($mimes = array()) { | |
$mimes['svg'] = 'image/svg+xml'; | |
return $mimes; | |
} |
/** | |
* @author Michael Musgrove | |
* @example http://wpplus.me/ | |
* @copyright 2014 WP Plus me | |
*/ | |
<div class="login-wrap"> | |
<form name="loginform" id="loginform" action="http://www.example.dev/wp-login.php" method="post"> | |
<p class="login-username"> | |
<label for="user_login">Username</label> | |
<input type="text" name="log" id="user_login" class="input" value="" size="18" /> |
/* | |
* Replace all SVG images with inline SVG | |
*/ | |
jQuery('img.svg').each(function(){ | |
var $img = jQuery(this); | |
var imgID = $img.attr('id'); | |
var imgClass = $img.attr('class'); | |
var imgURL = $img.attr('src'); | |
jQuery.get(imgURL, function(data) { |