Skip to content

Instantly share code, notes, and snippets.

Avatar
🌏
One of our greatest freedoms is how we react to things.

Luke Cavanagh lukecav

🌏
One of our greatest freedoms is how we react to things.
View GitHub Profile
@lukecav
lukecav / Links
Created February 6, 2023 19:48
Backup plugins with Google Drive integration in free versions
View Links
@lukecav
lukecav / functions.php
Created February 3, 2023 17:58
Disable the RocketCDN call to call (CTA) in WP Rocket plugin
View functions.php
apply_filters( 'display_rocketcdn_cta', '__return_false' );
@lukecav
lukecav / Links
Created January 31, 2023 20:33
Troubleshooting WordPress issues
View Links
@lukecav
lukecav / functions.php
Created January 31, 2023 17:25
Limit the number of entries loaded in the Non-MainWP Widget
View functions.php
add_filter( 'mainwp_widget_site_actions_limit_number', 'mycustom_mainwp_widget_site_actions_limit_number' );
function mycustom_mainwp_widget_site_actions_limit_number( $value ) {
return 200;
}
@lukecav
lukecav / .htaccess
Created January 30, 2023 16:41
Stop CDN or proxy from blocking Sucuri backups
View .htaccess
# Allow Sucuri Backups
<ifmodule mod_rewrite.c="">
RewriteRule ^sucuri-(.*).php$ - [L]
</ifmodule>
@lukecav
lukecav / Commands
Created January 17, 2023 17:33
Upgrade ImmunifyAV
View Commands
wget https://repo.imunify360.cloudlinux.com/defence360/imunify-force-update.sh -O imunify-force-update.sh
bash imunify-force-update.sh
yum update imunify-antivirus
@lukecav
lukecav / functions.php
Created January 10, 2023 22:01
Kadence Blocks plugin hide design library icon
View functions.php
add_filter( 'kadence_blocks_design_library_enabled', '__return_false' );
@lukecav
lukecav / Links
Created January 4, 2023 20:27
WP REST API Oembed caching
View Links
@lukecav
lukecav / Links
Created December 21, 2022 19:27
How To Install WordPress in InterWorx
View Links
@lukecav
lukecav / Links
Last active December 22, 2022 15:00
WooCommerce 7.2.1 update issue which is resolved in version 7.2.2
View Links