Skip to content

Instantly share code, notes, and snippets.

View Jamonzito's full-sized avatar

Jamonzito Jamonzito

View GitHub Profile
@Jamonzito
Jamonzito / wc-bookings-mdy-format.php
Created July 13, 2018 10:27 — forked from woogists/wc-bookings-mdy-format.php
[WooCommerce Bookings] Change date format when calendar picker is not used in front end
/**
* 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' );
@Jamonzito
Jamonzito / media-query.css
Created July 23, 2018 09:52 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@Jamonzito
Jamonzito / functions.php
Created July 24, 2018 12:04 — forked from kontikidigital/functions.php
WooCommerce: Change Select Options Button Text for variable products
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 ) {