Skip to content

Instantly share code, notes, and snippets.

View Katamo's full-sized avatar

Óscar de la Mata Katamo

View GitHub Profile
## CHACHEO POR TIPO ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 month"
ExpiresByType image/jpeg "access 1 month"
ExpiresByType image/gif "access 1 month"
ExpiresByType image/png "access 1 month"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
@Katamo
Katamo / gist:a903d8c6fd90178b8174
Last active August 29, 2015 14:07
Shortcode para mostrar gists
/**
* Shortcode para mostrar gists
* Originally taken from https://kopepasah.com/tutorial/github-gist-shortcode-for-wordpress/
*/
function gist_shortcode( $atts ) {
extract( shortcode_atts( array(
'id' => '',
'file' => '',
), $atts ) );
@Katamo
Katamo / template-maqueta-grupos-discografia.php
Created May 10, 2014 07:06
Template to show music band details
<?php
/**
* Template Name: maqueta grupos discografia
*
* Discography for music band (GRUPO)
*/
//MODEL GRUPOS
include_once('dvlp/lib/model/dvlp_grupos_model.php');
$model = new GruposModel();
@Katamo
Katamo / gist:10243188
Last active January 24, 2021 13:44 — forked from corsonr/gist:7215762
<?php
add_filter( 'woocommerce_checkout_fields' , 'woo_remove_billing_checkout_fields' );
/**
* Remove unwanted checkout fields
*
* @return $fields array
*/
function woo_remove_billing_checkout_fields( $fields ) {