Skip to content

Instantly share code, notes, and snippets.

View lukecav's full-sized avatar
Translucent form radiates

Luke Cavanagh lukecav

Translucent form radiates
View GitHub Profile
@lukecav
lukecav / Links
Created June 3, 2022 17:31
ShortPixel Image Optimizer plugin next-gen image delivery
@lukecav
lukecav / Links
Created June 3, 2022 17:29
ShortPixel Image Optimizer plugin performance change related to AJAX front-end processing
@lukecav
lukecav / Links
Last active June 3, 2022 17:37
ShortPixel Image Optimizer plugin backup storage for the original images
@lukecav
lukecav / robots.txt
Created June 2, 2022 20:44
Disallow recommends for a robots.txt file for WordPress
User-agent: *
Disallow: /wp-admin/
Disallow: /wp-admin/admin-ajax.php
Disallow: /wp-login.php
Disallow: /wp-json/
Disallow: /?s=
Disallow: /search/
@lukecav
lukecav / functions.php
Last active June 1, 2022 20:07
Disable autosave in WordPress
add_action( 'admin_init', 'disable_autosave' );
function disable_autosave() {
wp_deregister_script( 'autosave' );
}
@lukecav
lukecav / Custom database tables
Created June 1, 2022 18:52
Independent Analytics plugin custom database tables
wp_independent_analytics_referrers
wp_independent_analytics_resources
wp_independent_analytics_views
@lukecav
lukecav / Command
Created June 1, 2022 13:29
Run WooCommerce Analytics Action Scheduler group from WP-CLI command
wp action-scheduler run --group="wc-admin-data" --force
@lukecav
lukecav / Links
Last active May 23, 2022 20:48
Cloudflare Bot Protection
@lukecav
lukecav / functions.php
Created May 17, 2022 15:25
Disable Action Scheduler allow Async request runner
add_filter( 'action_scheduler_allow_async_request_runner', '__return_false' );
@lukecav
lukecav / Commands
Created May 16, 2022 17:28
Custom order tables WooCommerce feature beta WP-CLI commands
wp wc cot count_unmigrated
wp wc cot migrate
wp wc cot migrate --batch-size=1000
wp wc cot verify_cot_data