Skip to content

Instantly share code, notes, and snippets.

View bobbiejwilson's full-sized avatar

Bobbie Wilson bobbiejwilson

View GitHub Profile
<script type="text/javascript">
jQuery(document).ready(function(){
/*jQuery firing on add to cart button click*/
jQuery('.single_add_to_cart_button').click(function(){
/*Product meta data being sent; this is where you'd do your
document.getElementsByName or .getElementById*/
var product-meta-data = 'product-meta-data';
/*Ajax request URL being stored*/
var ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>';
jQuery.ajax({
@RevConcept
RevConcept / functionality.php
Created March 4, 2014 23:35
Adding custom icons to ACF radio buttons.
/* ===========================================
Radio Button Icons in Admin for ACF
=============================================*/
function sr_acf_radio_style() {
echo '<link rel="stylesheet" href="' . plugins_url( 'css/jazz.css', __FILE__) . '" type="text/css" media="screen" />';
}
add_action('admin_head', 'sr_acf_radio_style');
@kgn
kgn / jquery.flipbook.js
Created November 29, 2010 07:22
jQuery plugin to display an animated image sequence.
//By David Keegan
//InScopeApps.com
//http://inscopeapps.com/demos/flipbook/
(function($){
$.fn.flipbook = function(options){
options = $.extend({
'start': 0, //start frame
'end': 100, //end frame, must be greater then start
'step': 1, //number of frames to step over while animating