Skip to content

Instantly share code, notes, and snippets.

🌎
Never give up and good luck will find you.

Luke Cavanagh lukecav

🌎
Never give up and good luck will find you.
View GitHub Profile
@lukecav
lukecav / functions.php
Created Oct 1, 2019
Anonymizing IP Addresses in the Google Analytics Configuration in the Google Site Kit Plugin
View functions.php
add_filter(
'googlesitekit_gtag_opt',
function( array $options ) {
$options['anonymize_ip'] = true;
return $options;
}
);
@lukecav
lukecav / functions.php
Created Oct 1, 2019
Disable fallback script in the Native Lazyload plugin
View functions.php
add_filter( 'native_lazyload_fallback_script_enabled', '__return_false' );
@lukecav
lukecav / functions.php
Created Oct 1, 2019
Exclude the Wordfence config database table from being backed up in UpdraftPlus
View functions.php
add_filter('updraftplus_backup_table', 'my_updraftplus_backup_table', 11, 5);
function my_updraftplus_backup_table($go_ahead, $table, $table_prefix, $whichdb, $dbinfo) {
$tables_to_not_back_up = array('wp_wfconfig');
if (in_array($table, $tables_to_not_back_up)) return false;
return $go_ahead;
}
@lukecav
lukecav / Custom DB tables
Created Oct 1, 2019
Rank Math SEO created custom DB tables
View Custom DB tables
wp_rank_math_404_logs
wp_rank_math_internal_links
wp_rank_math_internal_meta
wp_rank_math_redirections
wp_rank_math_redirections_cache
wp_rank_math_sc_analytics
@lukecav
lukecav / functions.php
Last active Oct 1, 2019
Disable the PHP Update Admin Nag Widget
View functions.php
function disable_php_update_nag_widget() {
remove_meta_box( 'dashboard_php_nag', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'disable_php_update_nag_widget', 40);
@lukecav
lukecav / Links
Created Oct 1, 2019
Duo Two-Factor Authentication plugin for WordPress issues
View Links
@lukecav
lukecav / Links
Created Oct 1, 2019
SquareSpace Exporting to CSV
View Links
@lukecav
lukecav / Command
Last active Nov 1, 2019
Google Site Kit plugin install using a WP-CLI command
View Command
wp plugin install google-site-kit --activate
@lukecav
lukecav / Command
Created Sep 30, 2019
Set the license key using a WP-CLI command for WP Migrate DB Pro
View Command
wp migratedb setting update license xxx-xxx-xxx-xxx-xxx
@lukecav
lukecav / Custom DB tables
Created Sep 26, 2019
WCFM Marketplace plugin created custom database tables
View Custom DB tables
wp_wcfm_daily_analysis
wp_wcfm_detailed_analysis
wp_wcfm_enquiries
wp_wcfm_enquiries_meta
wp_wcfm_enquiries_response
wp_wcfm_enquiries_response_meta
wp_wcfm_following_followers
wp_wcfm_marketplace_orders
wp_wcfm_marketplace_orders_meta
wp_wcfm_marketplace_product_multivendor
You can’t perform that action at this time.