Skip to content

Instantly share code, notes, and snippets.

View jeanox's full-sized avatar

Becky Pennock jeanox

  • Second Mile
  • Seattle, WA
View GitHub Profile
@jeanox
jeanox / blackFridayJS.js
Created December 20, 2017 17:16
Black Friday Popup JS
// ---------------------
// Black Friday Popup
// ---------------------
Exclude all pages with .brand (includes review pages)
const excludePages = !$('body').hasClass('brand');
// Sale Dates: 24, 25, 27, 28
const saleDates = [24, 25, 27, 28];
const d = new Date();
@jeanox
jeanox / remove_class_filters.php
Last active March 14, 2022 19:47
Remove Class Filters w/ Wordpress ID/Hash Conditional
/**
* Make sure the function does not exist before defining it
*/
if( ! function_exists( 'remove_class_filter' ) ){
/**
* Remove Class Filter Without Access to Class Object
*
* In order to use the core WordPress remove_filter() on a filter added with the callback
* to a class, you either have to have access to that class object, or it has to be a call