Skip to content

Instantly share code, notes, and snippets.

View Jplus2's full-sized avatar
💯
Always Improving

J++ Jplus2

💯
Always Improving
View GitHub Profile
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"port": 9000
}
]
@Jplus2
Jplus2 / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Jplus2
Jplus2 / woocommerce-check-terms.php
Last active August 29, 2015 14:06 — forked from BFTrick/woocommerce-check-terms.php
Make terms and conditions checkbox at the checkout page checked by default.
<?php
/**
* Plugin Name: WooCommerce Check Terms & Conditions
* Plugin URI: https://gist.github.com/BFTrick/7789974
* Description: Make the Terms & Conditions checkbox checked by default
* Author: Patrick Rauland
* Author URI: http://patrickrauland.com/
* Version: 1.0
*
* This program is free software: you can redistribute it and/or modify
@Jplus2
Jplus2 / add-to-cart.php
Last active September 21, 2017 09:09 — forked from claudiosanches/add-to-cart.php
Add quantity button and ajax functionality to add to cart button on product archive page.
<?php
/**
* Custom Loop Add to Cart.
*
* Template with quantity and ajax.
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly.
global $product;