Skip to content

Instantly share code, notes, and snippets.

View ArnoutPullen's full-sized avatar
🎯
Focusing

ArnoutPullen ArnoutPullen

🎯
Focusing
View GitHub Profile
@rickalee
rickalee / youtube_embed_no_cookie.php
Created March 27, 2018 02:55
Youtube No Cookie Domain
<?php
if(!function_exists('wc_get_products')) {
return;
}
$paged = (get_query_var('paged')) ? absint(get_query_var('paged')) : 1;
$ordering = WC()->query->get_catalog_ordering_args();
$ordering['orderby'] = array_shift(explode(' ', $ordering['orderby']));
$ordering['orderby'] = stristr($ordering['orderby'], 'price') ? 'meta_value_num' : $ordering['orderby'];
@trey8611
trey8611 / import-optimizations.md
Last active November 29, 2024 11:06
WP All Import - Optimize your import speed.
@ArnoutPullen
ArnoutPullen / woocommerce-procedures.sql
Last active July 9, 2020 11:23
WooCommerce SQL Procedures
-- https://www.w3schools.com/sql/sql_stored_procedures.asp
-- https://codex.wordpress.org/Database_Description
-- https://github.com/woocommerce/woocommerce/wiki/Database-Description
CREATE PROCEDURE DeleteProduct @ProductID bigint(20)
AS
DELETE FROM wp_posts WHERE ID = @ProductID;
DELETE FROM wp_postmeta WHERE post_id = @ProductID;
DELETE c, cm