View Rocket Nginx config file for Runcloud
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# TO BE ADDED TO location.main-before | |
################################################################################################### | |
# Rocket-Nginx | |
# | |
# Rocket-Nginx is a NGINX configuration to speedup your WordPress | |
# website with the cache plugin WP-Rocket (http://wp-rocket.me) | |
# | |
# Author: Maxime Jobin | |
# URL: https://github.com/maximejobin/rocket-nginx | |
# |
View hide-plugins-if-not-ID.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Hide Plugins | |
* Plugin URI: https://premium.wpmudev.org/ | |
* Description: Hides specific plugins from Admin Menus & Plugins List | |
* Version: 1.0.0 | |
* Author: Konstantinos Xenos @ WPMUDEV | |
* Author URI: https://premium.wpmudev.org/ | |
* License: GPLv2 or later |
View delete-generated-wp-images.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List the files | |
find -E . -type f -regex ".*-[[:digit:]]{2,4}x[[:digit:]]{2,4}(@2x)?.(jpg|jpeg|png|eps|gif)" | |
# DANGER! Delete the files | |
find -E . -type f -regex ".*-[[:digit:]]{2,4}x[[:digit:]]{2,4}(@2x)?.(jpg|jpeg|png|eps|gif)" -delete |
View genesis-homepage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* Unregister widgets areas & layouts | |
unregister_sidebar( 'sidebar-alt' ); | |
genesis_unregister_layout( 'content-sidebar-sidebar' ); | |
genesis_unregister_layout( 'sidebar-sidebar-content' ); | |
genesis_unregister_layout( 'sidebar-content-sidebar' ); | |
//* Register Home Slider widget area | |
genesis_register_sidebar( array( | |
'id' => 'home-slider', |
View delete-cron
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * FROM `wp_options` WHERE option_name = 'cron' |
View enqueue Google fonts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wp_enqueue_style( | |
'google-fonts', | |
'//fonts.googleapis.com/css?family=Noto+Sans:400,700|Noto+Serif:400,400i,700,700i', | |
array(), | |
CHILD_THEME_VERSION | |
); |
View empty-trash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define( 'EMPTY_TRASH_DAYS', 5 ); |
View post-revisions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define( 'WP_POST_REVISIONS', 3 ); |
View remove-transients
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE FROM `wp_options` WHERE `option_name` LIKE ('%\_transient\_%'); |
View register-widgets-genesis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* Unregister widgets areas & layouts | |
unregister_sidebar( 'sidebar-alt' ); | |
genesis_unregister_layout( 'content-sidebar-sidebar' ); | |
genesis_unregister_layout( 'sidebar-sidebar-content' ); | |
genesis_unregister_layout( 'sidebar-content-sidebar' ); | |
//* Register Home Slider widget area | |
genesis_register_sidebar( array( | |
'id' => 'home-slider', |
NewerOlder