Skip to content

Instantly share code, notes, and snippets.

View G3ronim0's full-sized avatar

Sadler Jerome G3ronim0

View GitHub Profile
@Shelob9
Shelob9 / README.MD
Last active June 25, 2020 09:59
Combine, Minify and Inline CSS In WordPress, in the correct order

Combine, Minify and Inline CSS In WordPress, in the correct order

Installation

Use copypasta to add to a sub-dir of mu-plugins or use Composer:

  "require": {
 "shelob9/css-inliner" : "*"
@devinsays
devinsays / custom-logo-update-script.php
Last active April 17, 2016 12:49
Code snippet for update script to use new theme logo
<?php
/**
* Theme Update Script
*
* Runs if version number saved in theme_mod "version" doesn't match current theme version.
*/
function prefix_update_check() {
$ver = get_theme_mod( 'version', false );
#Il faut penser à remplacer key par sa clef (moi je ne la montre pas à tout le monde)
#je savais pas que pour faire un curl sur une url de plus d'un parametre il fallait des guillemets...
#curl -L -v 'http://connect.advancedcustomfields.com/index.php?p=pro&a=download&k=KEY' > acfpro.zip
curl -L -v 'http://connect.advancedcustomfields.com/index.php?p=pro&a=download&k=KEY' | tar -xf- -C /path/to/plugins
@simonlk
simonlk / Woocommerce - output product variations in tab
Last active February 21, 2022 20:27
Output Woocommerce product variations as a table within a tab on the single product page
// Add to functions.php
/*===================================================
Created by sk from Renegade Empire with help
from these sources:
http://docs.woothemes.com/document/editing-product-data-tabs/
http://www.sean-barton.co.uk/2013/03/remove-woocommerce-20-reviews-tab/#.UYnWe7XfB6N
http://www.sean-barton.co.uk/2013/03/sb-add-woocommerce-tabs-wordpress-plugin/#.UYrYL7XfB6M