Skip to content

Instantly share code, notes, and snippets.

Avatar
🌏
No to War

Luke Cavanagh lukecav

🌏
No to War
View GitHub Profile
@lukecav
lukecav / Custom DB table
Created Oct 25, 2021
WordPress Native PHP Sessions plugin custom db table
View Custom DB table
wp_pantheon_sessions
@lukecav
lukecav / Custom DB tables
Created Oct 22, 2021
MasterStudy LMS plugin custom database tables
View Custom DB tables
wp_stm_lms_curriculum_bind
wp_stm_lms_curriculum_log
wp_stm_lms_order_items
wp_stm_lms_user_answers
wp_stm_lms_user_cart
wp_stm_lms_user_chat
wp_stm_lms_user_conversation
wp_stm_lms_user_courses
wp_stm_lms_user_lessons
wp_stm_lms_user_quizzes
@lukecav
lukecav / wp-config.php
Created Oct 21, 2021
Instruct WP Migrate DB Pro to use insecure http (non-SSL) for the api call
View wp-config.php
define( 'DBRAINS_API_BASE', 'http://api.deliciousbrains.com' );
@lukecav
lukecav / wp-config.php
Created Oct 21, 2021
Disable Pantheon update notices
View wp-config.php
define( 'DISABLE_PANTHEON_UPDATE_NOTICES', true );
@lukecav
lukecav / Custom DB tables
Created Oct 20, 2021
WooCommerce Product Search plugin custom database tables
View Custom DB tables
wps_index
wps_hit
wps_object_term
@lukecav
lukecav / wp-config.php
Last active Oct 20, 2021
WooCommerce Product Search plugin disable search using constants
View wp-config.php
define( 'WPS_EXT_PDS', false );
define( 'WPS_EXT_REST', false );
define( 'WPS_ROLES_CACHE', false );
define( 'WPS_GROUPS_CACHE', false );
define( 'WPS_DIVI_SHOP_FILTER', true );
@lukecav
lukecav / wp-config.php
Created Oct 20, 2021
WooCommerce Product Search plugin Debugging
View wp-config.php
define( 'WPS_DEBUG_SCRIPTS', true );
define( 'WPS_DEBUG_STYLES', true );
define( 'WPS_DEBUG_DOM', true );
@lukecav
lukecav / functions.php
Created Oct 20, 2021
Stop Jetpack CSS being concatenated into a single jetpack.css file
View functions.php
add_filter( 'jetpack_implode_frontend_css', '__return_false', 99 );
@lukecav
lukecav / style.css
Created Oct 20, 2021
Remove the NitroPack footer link if using the free plan
View style.css
.npf{display: none !important}
@lukecav
lukecav / Command
Created Oct 18, 2021
Delete the GiveWP cache using a WP-CLI command
View Command
wp give cache --action="delete"