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
/** | |
* Enables the HTTP Strict Transport Security (HSTS) header in WordPress. | |
* Includes preloading with subdomain support. | |
* via https://thomasgriffin.com/enable-http-strict-transport-security-hsts-wordpress/ | |
*/ | |
function tg_enable_strict_transport_security_hsts_header_wordpress() { | |
header( 'Strict-Transport-Security: max-age=31536000; includeSubDomains; preload' ); | |
} | |
add_action( 'send_headers', 'tg_enable_strict_transport_security_hsts_header_wordpress' ); |
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
// Show more accounts in the Beehive Pro plugin | |
add_filter( 'beehive_google_analytics_ga4_accounts_page_size', function ( $limit ) { | |
// Increase the limit to 50 | |
return 100; | |
} ); |
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
// Hide The Mighty Mo!'s Google Analytics account info from the Beehive Pro plugin | |
function restrict_admin_page_access() { | |
// Get current user's info | |
$current_user = wp_get_current_user(); | |
// Get the URL to restrict | |
$restricted_url = 'admin.php?page=beehive-google-analytics#/account'; | |
// Get current URL |
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
# SGS XMLRPC Disable Service | |
<Files xmlrpc.php> | |
order deny,allow | |
deny from all | |
</Files> | |
# SGS XMLRPC Disable Service END | |
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / |
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
# BEGIN Utilize S3 bucket rather than localhost for "uploads" folder - Via https://tinyurl.com/s3redirect | |
RewriteRule ^wp-content/uploads/(.*)$ https://your_bucket_name.s3.amazonaws.com/wp-content/uploads/$1 [R,L] | |
# END Utilize S3 bucket |
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
/* | |
Disable auto-generated thumbnails. Via | |
- https://wordpress.stackexchange.com/questions/91166/how-to-disable-wordpress-from-creating-thumbnails | |
- https://wordpress.stackexchange.com/questions/260609/remove-image-size-doesnt-seem-to-be-working | |
*/ | |
function add_image_insert_override($sizes){ | |
unset( $sizes['thumbnail']); | |
unset( $sizes['medium']); | |
return $sizes; | |
} |
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
/** | |
* https://fewerthanthree.com/code-snippets/updating-user-password-mysql | |
*/ | |
UPDATE wp_users | |
SET user_pass= MD5('password') | |
WHERE ID = 1 |
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
/* | |
* BEGIN style Gravity Forms placeholder text | |
*/ | |
.gform_wrapper .gfield_radio li label { | |
max-width: 100%; | |
} | |
.gfield input::-webkit-input-placeholder, | |
.gfield textarea::-webkit-input-placeholder, | |
.gfield select::-webkit-input-placeholder { | |
/* Chrome/Opera/Safari */ |
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
# codekit # | |
########### | |
.sass-cache/ | |
.codekit-config.json | |
.config.codekit | |
# wpengine # | |
############ | |
*~ |
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
# codekit # | |
########### | |
.sass-cache/ | |
.codekit-config.json | |
.config.codekit | |
files/wp-content/themes/esco/assets/scss/.sass-cache/* | |
files/wp-content/themes/esco/config.codekit | |
/wp-content/themes/esco/config.codekit | |