Skip to content

Instantly share code, notes, and snippets.

@dherbold
dherbold / .gitignore_wordpress
Created February 20, 2022 20:54 — forked from gavin-hall/.gitignore_wordpress
Template .gitignore for git-managed WordPress projects
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your
add_filter( 'wc_add_to_cart_message', 'dfh_change_cart_message', 10, 2 );
function dfh_change_cart_message( $cart_message, $product_id ) {
if(strpos($cart_message, "Continue Shopping") !== false)
{
$cart_message = str_replace("Continue Shopping","Shop More",$cart_message);
}
return$cart_message;
}
<?php /**
* @Title: WooCommerce Edit Checkout Billing Address fields
*/
add_filter( 'woocommerce_checkout_fields' , 'dfh_woo_mod_woo_billing_address_fields' );
function dfh_woo_mod_woo_billing_address_fields( $fields ) {
// Remove Billing Company Field
unset($fields['billing']['billing_company']);
@dherbold
dherbold / wc-no-order-again.php
Created August 9, 2017 21:22 — forked from rynaldos-zz/wc-no-order-again.php
[WooCommerce] Remove the "order again" button
remove_action( 'woocommerce_order_details_after_order_table', 'woocommerce_order_again_button' );
@dherbold
dherbold / .gitignore
Created October 28, 2012 19:37 — forked from redoPop/.gitignore
Template .gitignore file for WordPress projects
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your