Skip to content

Instantly share code, notes, and snippets.

View emanweb's full-sized avatar
🏠
Working from home

Manny Costa emanweb

🏠
Working from home
View GitHub Profile
@spivurno
spivurno / gw-gravity-forms-advanced-conditional-logic.php
Last active June 5, 2024 15:38
Gravity Wiz // Gravity Forms // Advanced Conditional Logic
<?php
/**
* Gravity Wiz // Gravity Forms // Advanced Conditional Logic
*
* PLEASE NOTE: This snippet is a proof-of-concept. It is not supported and we have no plans to improve it.
*
* Allows multiple groups of conditional logic per field.
*
* @version 0.1
* @author David Smith <[email protected]>
@lukecav
lukecav / Commands
Last active January 23, 2018 05:38
WP-CLI DB performance optimization
wp db size
wp db size --tables
wp transient delete --expired
wp cache flush
wp post delete $(wp post list --post_type='revision' --format=ids)
wp comment delete $(wp comment list --status=spam --format=ids)
wp comment delete $(wp comment list --status=trash --format=ids)
wp db optimize