Skip to content

Instantly share code, notes, and snippets.

View spigotdesign's full-sized avatar

Bryan Hoffman spigotdesign

View GitHub Profile
traceroute to 69.167.148.102 (69.167.148.102), 64 hops max, 52 byte packets
1 192.168.4.1 (192.168.4.1) 2.642 ms 2.518 ms 2.553 ms
2 96.120.96.117 (96.120.96.117) 11.298 ms 14.026 ms 11.480 ms
3 po-305-1264-rur102.saltlakecity.ut.utah.comcast.net (96.110.232.101) 10.778 ms 11.211 ms 10.417 ms
4 po-100-xar02.saltlakecity.ut.utah.comcast.net (24.124.175.93) 11.878 ms 12.488 ms 8.427 ms
5 162.151.39.213 (162.151.39.213) 12.916 ms 12.543 ms 25.513 ms
6 be-306-arsc1.saltlakecity.ut.utah.comcast.net (24.124.175.29) 23.043 ms 13.838 ms 15.867 ms
7 24.124.175.214 (24.124.175.214) 12.288 ms 15.781 ms 13.848 ms
8 be-36721-cs02.champa.co.ibone.comcast.net (96.110.43.229) 22.130 ms 23.559 ms 23.608 ms
9 be-1214-cr14.champa.co.ibone.comcast.net (96.110.37.246) 21.697 ms
add_action( 'gform_after_submission_3', 'post_to_ninjaquote', 10, 2 );
$parsed_json = "";
function post_to_ninjaquote( $entry, $form ) {
$endpoint_url = 'https://92jllb1dk7.execute-api.us-east-1.amazonaws.com/dev/tdk-quoter';
$product_type = rgar( $entry, '1' );
$state = rgar( $entry, '8' );
$gender = rgar( $entry, '6' );
$birthdate = rgar( $entry, '4' );
$args = [
'post_type' => 'ht_kb',
'tax_query' => [
[
'taxonomy' => 'ht_kb_category',
'terms' => $hkb_current_term_id,
],
],
'posts_per_page' => 5,
'orderby' => 'term_id',
2022-08-02T00:05:22+00:00 CRITICAL Uncaught Error: Call to a member function get_data_store() on bool in /home/cinchws/public_html/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wcs-initial-cart-stock-manager.php:85
Stack trace:
#0 /home/cinchws/public_html/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wcs-initial-cart-stock-manager.php(45): WCS_Initial_Cart_Stock_Manager::has_handled_stock(false)
#1 /home/cinchws/public_html/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wcs-renewal-cart-stock-manager.php(49): WCS_Initial_Cart_Stock_Manager::get_order_from_cart()
#2 /home/cinchws/public_html/wp-includes/class-wp-hook.php(307): WCS_Renewal_Cart_Stock_Manager::maybe_adjust_stock_checkout('')
#3 /home/cinchws/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
#4 /home/cinchws/public_html/wp-includes/plugin.php(476): WP_Hook->do_a
@spigotdesign
spigotdesign / gist:220f7150b959afcf53494dfbe98fac1d
Created July 18, 2022 17:23
Styles for stacked datepicker
<style>
.rootrez_widget_form_wrapper {
border-radius: 0;
border: none;
}
#rootrez-widget-form .search_dates,
#rootrez-widget-form .search_occupancy {
flex-basis: 100% !important;
border: 2px solid gray;
margin-bottom: 10px;
@spigotdesign
spigotdesign / spigot-walker.php
Created December 13, 2021 16:39
Accessible WP menu
class Spigot_Walker extends Walker_Nav_Menu {
function start_el(&$output, $item, $depth=0, $args=array(), $id = 0) {
$object = $item->object;
$type = $item->type;
$title = $item->title;
$permalink = $item->url;
$classes = $item->classes;
$output .= "<li id='menu-item-". $item->ID ."' class='menu__item " . implode(" ", $classes) . "'>";
<?php $event_feed = new WP_Query(
array(
'post_type' => 'tribe_events',
'posts_per_page' => $settings->post_items ,
'eventDisplay' => 'upcoming',
'start_date' => $current_date,
'end_date' => $current_date,
'orderby' => 'start_date',
'order' => 'ASC',
// Output on Single Post
<meta name="description" content="Most of us who are close to the WordPress world know that Gutenberg is coming. And probably soon. We’ve been using it here on Cinch and elsewhere in order to…" />
<meta property="og:image" content="https://cinchws.local/wp-content/uploads/2018/09/marco-djallo-127113-unsplash.jpg" />
<meta property="og:image:width" content="1300" />
<meta property="og:image:height" content="450" />
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="article" />
<meta property="og:title" content="This is the test meta title yes! | Cinch Web Services" />
<meta property="og:description" content="Most of us who are close to the WordPress world know that Gutenberg is coming. And probably soon. We’ve been using it here on Cinch and elsewhere in order to get a better understanding of how it works…" />
<meta property="og:url" content="https://cinchws.local/keeping-up-with-gutenberg/" />
<?php $efeed = new WP_Query( array(
'post_type' => 'tribe_events',
'showposts' => 2,
'eventDisplay' => 'upcoming',
'start_date' => $current_date,
'end_date' => $current_date,
'orderby' => 'start_date',
'order' => 'ASC',
'tax_query' => array(
array(
/*
* Add Revision support to WooCommerce Products
*
*/
add_filter( 'woocommerce_register_post_type_product', 'cinch_add_revision_support' );
function cinch_add_revision_support( $supports ) {
$supports['supports'][] = 'revisions';