Skip to content

Instantly share code, notes, and snippets.

@ThomasLarge
ThomasLarge / woocommerce-simple-or-variable.php
Created December 18, 2017 15:12 — forked from patrickgilmour/woocommerce-simple-or-variable.php
WooCommerce conditional to test if a Product is Simple or Variable.
<?php
/**
* Is a WooCommerce Product Simple or Variable
*
* see http://wordpress.org/support/topic/condition-to-check-if-product-is-simple-or-variable
*/
if( $product->is_type( 'simple' ) ){
// a simple product
@ThomasLarge
ThomasLarge / templating.md
Created April 25, 2018 14:51 — forked from brandonkelly/templating.md
Templating in EE vs. Craft
@ThomasLarge
ThomasLarge / wordpress-valet-install.md
Created April 11, 2019 12:51 — forked from orumad/wordpress-valet-install.md
How to install Wordpress from command line in Valet

How to install Wordpress from command line in Valet

I use Valet as my local web development environment (PHP, Laravel, Wordpress, ...)

This gist is my own recipe to install Wordpress from the command line to use it with Valet. Maybe this is useful for you too.

Install 'WP-CLI' command line tool