Skip to content

Instantly share code, notes, and snippets.

View claudiulodro's full-sized avatar
🦆
ℭ𝔩𝔞𝔲𝔡𝔦𝔲 𝔏𝔬𝔡𝔯𝔬𝔪𝔞𝔫𝔢𝔞𝔫

Claudiu Lodromanean claudiulodro

🦆
ℭ𝔩𝔞𝔲𝔡𝔦𝔲 𝔏𝔬𝔡𝔯𝔬𝔪𝔞𝔫𝔢𝔞𝔫
View GitHub Profile
@claudiulodro
claudiulodro / unsupported-theme-review-template.php
Last active January 2, 2018 14:50
WooCommerce 3.3 use review template on unsupported theme
<?php
add_filter( 'comments_template', array( 'WC_Template_Loader', 'comments_template_loader' ) );
@claudiulodro
claudiulodro / index.html
Last active August 28, 2017 05:44
three.js Tutorial Application
<html>
<head>
<style>
/* Make the render take up the entire screen. */
canvas { width: 100%; height: 100% }
</style>
<script src="three.js"></script>
</head>
<body>
<script>
@claudiulodro
claudiulodro / wc-query-demo-data-store.php
Last active April 19, 2017 21:47
WC_Query data store query processing demo implementation
<?php
class WC_Data_Store_WP {
// . . .
/**
* Map WC_Query args into a format that WP_Query can parse.
* @param $args - array of query args from a WC_Query.
* @return array of query args that WP_Query can parse.
@claudiulodro
claudiulodro / wc-query-demo.php
Last active April 25, 2017 16:29
WC_Query demo implementation
<?php
/**
* First draft of the WooCommerce CRUD search helpers.
*/
/**
* Base query class intended for extending.
*/
class WC_Object_Query {
@claudiulodro
claudiulodro / modifying-setup-wizard.php
Last active August 10, 2020 06:41
WooCommerce Setup Wizard - Adding/Removing Setup Wizard steps.
<?php
/**
* This is simple demo showing how to add and remove steps for the WooCommerce Setup Wizard
*/
/**
* Add new steps to the setup wizard.
* To insert new steps in the middle use array_slice
*