Skip to content

Instantly share code, notes, and snippets.

View sebastianmoran-mainwp's full-sized avatar
🚀
Fast Lane Strategies: Turbocharging Your WordPress Website for Optimal Speed.

Sebastian Moran sebastianmoran-mainwp

🚀
Fast Lane Strategies: Turbocharging Your WordPress Website for Optimal Speed.
View GitHub Profile
@sebastianmoran-mainwp
sebastianmoran-mainwp / Option names
Created April 18, 2020 22:47
Powered Cache plugin creation options
powered_cache_preload_runtime_option
powered_cache_settings
@sebastianmoran-mainwp
sebastianmoran-mainwp / Commands
Created February 21, 2020 04:52
Commands to run to free up space on your Discourse server
./launcher cleanup
apt-get autoclean
apt-get autoremove
@sebastianmoran-mainwp
sebastianmoran-mainwp / Commands
Created February 13, 2020 01:55
Remove all containers for Discourse to reclaim space
./launcher cleanup
apt-get autoclean
apt-get autoremove
@sebastianmoran-mainwp
sebastianmoran-mainwp / Custom DB tables
Created February 12, 2020 17:55
Pricing Deals for WooCommerce plugin created custom database tables
wp_vtprd_purchase_log
wp_vtprd_purchase_log_product
wp_vtprd_purchase_log_product_rule
wp_vtprd_transient_cart_data
@sebastianmoran-mainwp
sebastianmoran-mainwp / Custom DB table
Created February 11, 2020 17:05
Plugin Organizer created custom database table
wp_po_plugins
@sebastianmoran-mainwp
sebastianmoran-mainwp / Links
Created January 29, 2020 20:02
Discourse enable Badge editing and badge queries
@sebastianmoran-mainwp
sebastianmoran-mainwp / functions.php
Last active May 6, 2020 17:23
Delete Jetpack Plugin Created Options for Database Cleanup when the Plugin has been Uninstalled on a WordPress Site
global $wpdb;
$plugin_options = $wpdb->get_results( "SELECT option_name FROM $wpdb->options WHERE option_name LIKE 'jetpack_%'" );
foreach( $plugin_options as $option ) {
delete_option( $option->option_name );
}
@sebastianmoran-mainwp
sebastianmoran-mainwp / functions.php
Created January 29, 2020 03:49
Delete all ManageWP created option values
global $wpdb;
$plugin_options = $wpdb->get_results( "SELECT option_name FROM $wpdb->options WHERE option_name LIKE 'mwp_%'" );
foreach( $plugin_options as $option ) {
delete_option( $option->option_name );
}
@sebastianmoran-mainwp
sebastianmoran-mainwp / Links
Created January 14, 2020 14:06
Discourse Data Explorer Plugin Examples
@sebastianmoran-mainwp
sebastianmoran-mainwp / .htaccess
Created January 9, 2020 22:53
Really Simple SSL plugin rewrite rules added
# BEGIN rlrssslReallySimpleSSL rsssl_version[3.2.6]
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
</IfModule>
# END rlrssslReallySimpleSSL