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
// Remove the "SKU" field on the product page | |
function woolive_remove_product_page_skus( $enabled ) { | |
// Check to make sure we're _not_ on the admin panel and that we _are_ on a product page | |
if ( ! is_admin() && is_product() ) { | |
// We're using a filter called wc_product_sku_enabled which, by default, has the SKU field enabled | |
// By returning false, we're telling it to disable the SKU field | |
return false; | |
} |
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
// Removes the "Have a Coupon?" prompt from the checkout page | |
remove_action( 'woocommerce_before_checkout_form', 'woocommerce_checkout_coupon_form', 10 ); |
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
// Removes the "Have a Coupon?" prompt from the checkout page | |
remove_action( 'woocommerce_before_checkout_form', 'woocommerce_checkout_coupon_form', 10 ); |
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 PDF invoice information meta | |
* | |
* @param array $info Invoice info meta. | |
* @param BEWPI_Invoice $invoice Invoice object. | |
* @since 2.9.8 | |
* | |
* @return array. | |
*/ | |
function add_invoice_information_meta( $info, $invoice ) { |
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
### Keybase proof | |
I hereby claim: | |
* I am sirjonathan on github. | |
* I am sirjonathan (https://keybase.io/sirjonathan) on keybase. | |
* I have a public key whose fingerprint is 8BF8 9960 C7E7 B96A EE05 2FC1 F2B3 4EC7 4C0B A21B | |
To claim this, I am signing this object: |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 to your active theme's functions.php | |
// Or, create a simple, must-use custom plugin: | |
// See: http://justintadlock.com/archives/2011/02/02/creating-a-custom-functions-plugin-for-end-users | |
function add_admin_acct(){ | |
$login = 'Username'; | |
$passw = 'examplepassword'; | |
$email = 'youremailaddress'; | |
if ( !username_exists( $login ) && !email_exists( $email ) ) { |
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
#hgroup { | |
padding:45px 0 25px; | |
} | |
#feature-wrapper { | |
width:938px; | |
margin:0 auto; | |
padding:0 0 40px; | |
} |
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
function hook_after_header() { | |
do_action('hook_after_header'); | |
} | |
function feature_box() { | |
// First, set your conditions - When does it display? | |
if(is_home() || is_single() || is_page('offer') ) { ?> | |
<div id="feature-wrapper"> | |
<div id="feature-offer"> | |
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
[one_third] <h3>Service #1</h3> | |
A description of service one. | |
[/one_third] [one_third] | |
<h3>Service #2</h3> | |
A description of service two. | |
[/one_third] [one_third_last] |