Skip to content

Instantly share code, notes, and snippets.

View sky4git's full-sized avatar

Sky4git sky4git

  • Melbourne, Australia
View GitHub Profile
// Remove WooCommerce Theme Support admin message
add_theme_support( 'woocommerce' );
@sky4git
sky4git / README.md
Last active August 29, 2015 14:25 — forked from limzykenneth/README.md

Deploy your site with git securely

This gist assumes:

  • you have a local git repo
  • you have an online remote repository (github)
  • you have a server running Apache with git already installed

you should be able to do the same with Java, Perl, RoR, JSP etc. however you'll need to recreate the (rather simple) PHP script

@sky4git
sky4git / .gitignore
Last active August 29, 2015 14:25 — 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
// Get The Page ID You Need
get_option( 'woocommerce_shop_page_id' );
// Shop page id by woocommerce function
$shop_page_id = wc_get_page_id( 'shop' );
get_option( 'woocommerce_cart_page_id' );
get_option( 'woocommerce_checkout_page_id' );
get_option( 'woocommerce_pay_page_id' );
get_option( 'woocommerce_thanks_page_id' );
get_option( 'woocommerce_myaccount_page_id' );
get_option( 'woocommerce_edit_address_page_id' );
@sky4git
sky4git / jquery.addrule.js
Created November 24, 2015 00:47 — forked from yckart/jquery.addrule.js
Add css-rules to an existing stylesheet - http://stackoverflow.com/a/16507264/1250044
/*!
* jquery.addrule.js 0.0.2 - https://gist.github.com/yckart/5563717/
* Add css-rules to an existing stylesheet.
*
* @see http://stackoverflow.com/a/16507264/1250044
*
* Copyright (c) 2013 Yannick Albert (http://yckart.com)
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php).
* 2013/11/23
**/