Skip to content

Instantly share code, notes, and snippets.

View jason-cleaveland's full-sized avatar

Jason Cleaveland jason-cleaveland

View GitHub Profile
@jason-cleaveland
jason-cleaveland / smartcrawl-error.log
Created December 20, 2021 22:22
Smarcrawl Error Log
load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=5.8.2:5 JQMIGRATE: Migrate is installed, version 3.3.2
load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=5.8.2:2 [Violation] 'setTimeout' handler took 98ms
block-editor.min.js?ver=fc8c27c6e95e7e0d59b4e344cb9ddfed:12 [Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
(anonymous) @ block-editor.min.js?ver=fc8c27c6e95e7e0d59b4e344cb9ddfed:12
(anonymous) @ compose.min.js?ver=35754587ca81a116927d3de1017f4fa0:2
P @ compose.min.js?ver=35754587ca81a116927d3de1017f4fa0:2
(anonymous) @ compose.min.js?ver=35754587ca81a116927d3de1017f4fa0:2
Aj @ react-dom.min.js?ver=16.13.1:161
unstable_runWithPriority @ react.min.js?ver=16.13.1:25
Da @ react-dom.min.js?ver=16.13.1:60
@jason-cleaveland
jason-cleaveland / gh-purchases-tab.php
Last active December 12, 2021 18:48
Groundhogg Purchases Tab Demo
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden.
}
/*
* Register the purchases tab
*
*/
function rtp_customer_tab( $tabs ) {
@jason-cleaveland
jason-cleaveland / network-activation-for-cron-logger.php
Last active April 26, 2021 05:12
Public Code Contributions
<?php
/**
* on activation
*/
function on_activate( $networkwide ) {
// check if this is a multisite installation
if( function_exists('is_multisite') && is_multisite() ) {
// check if it is a network activation