This file contains hidden or 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
/** | |
* Amazon Polly "Events" CPT | |
**/ | |
function my_amazon_polly_post_types( $post_types ) { | |
$post_types[] = 'events'; | |
return $post_types; | |
} | |
add_filter( 'amazon_polly_post_types', 'my_amazon_polly_post_types' ); |
This file contains hidden or 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
/** | |
* ============== REMOVE FROM LIVE =================== | |
prevent https:// for cron job | |
**/ | |
add_filter( 'cron_request', function( $args ) { | |
$args['url'] = set_url_scheme( $args['url'], 'http' ); | |
return $args; | |
} ); |
This file contains hidden or 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
## ENABLE GZIP COMPRESSION ## | |
AddOutputFilterByType DEFLATE text/plain | |
AddOutputFilterByType DEFLATE text/html | |
AddOutputFilterByType DEFLATE text/xml | |
AddOutputFilterByType DEFLATE text/css | |
AddOutputFilterByType DEFLATE application/xml | |
AddOutputFilterByType DEFLATE application/xhtml+xml | |
AddOutputFilterByType DEFLATE application/rss+xml | |
AddOutputFilterByType DEFLATE application/javascript | |
AddOutputFilterByType DEFLATE application/x-javascript |
This file contains hidden or 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
# | |
<IfModule mod_headers.c> | |
# HSTS - force redirect to HTTPS at the browser level. | |
# Submit for Chrome preload list at https://hstspreload.appspot.com/ | |
Header set Strict-Transport-Security: "max-age=31536000; includeSubDomains; preload" | |
# X-Xss-Protection | |
Header always set X-Xss-Protection "1; mode=block" | |
# Stop clickjacking by only allowing us to frame our own site |
NewerOlder