Skip to content

Instantly share code, notes, and snippets.

Avatar

Jamonzito Jamonzito

View GitHub Profile
@Jamonzito
Jamonzito / functions.php
Created Jul 24, 2018 — forked from targetimc/functions.php
WooCommerce: Change Select Options Button Text for variable products
View functions.php
add_filter( 'woocommerce_product_add_to_cart_text' , 'custom_woocommerce_product_add_to_cart_text' );
/**
* custom_woocommerce_template_loop_add_to_cart
*/
function custom_woocommerce_product_add_to_cart_text() {
global $product;
$product_type = $product->product_type;
switch ( $product_type ) {
@Jamonzito
Jamonzito / media-query.css
Created Jul 23, 2018 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
View media-query.css
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@Jamonzito
Jamonzito / wc-bookings-mdy-format.php
Created Jul 13, 2018 — forked from woogists/wc-bookings-mdy-format.php
[WooCommerce Bookings] Change date format when calendar picker is not used in front end
View wc-bookings-mdy-format.php
/**
* Will make it so that the date format when the calendar is not used is DD/MM/YYYY on a Bookable product.
*/
add_filter( 'woocommerce_bookings_mdy_format' , '__return_false' );
You can’t perform that action at this time.