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
deny from all |
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 | |
define( 'WP_DEBUG', true ); | |
define( 'WP_DEBUG_LOG', true ); | |
define( 'WP_DEBUG_DISPLAY', true ); | |
@ini_set( 'display_errors', 1 ); | |
define( 'SCRIPT_DEBUG', true ); | |
define( 'SAVEQUERIES', true ); |
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
/* Added to remove outline on any clicked div when displyed in IE 11 */ | |
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { | |
/* IE10+ CSS styles go here */ | |
:focus { | |
outline: none; | |
} | |
} |
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
<? | |
phpinfo(); | |
?> |
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
/** | |
* Never worry about cache again! | |
*/ | |
function my_load_scripts($hook) { | |
// create my own version codes | |
$my_js_ver = date("ymd-Gis", filemtime( plugin_dir_path( __FILE__ ) . 'js/custom.js' )); | |
$my_css_ver = date("ymd-Gis", filemtime( plugin_dir_path( __FILE__ ) . 'style.css' )); | |
// |
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 | |
/** | |
* ----- Add comment AFTER submit button on ALL Gravity Forms forms. | |
* @link https://docs.gravityforms.com/gform_submit_button/#2-add-text-after-the-button- | |
*/ | |
// Add consent statment after Submit button | |
add_filter( 'gform_submit_button', 'add_paragraph_below_submit', 10, 2 ); | |
function add_paragraph_below_submit( $button, $form ) { | |
return $button .= "<p>By filling out this form, I acknowledge that I have read, consent to, and agree to be bound by, the terms of our <a href=\"/company/privacy-statement/\" target=\"_blank\">Privacy Policy</a>.</p>"; |
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
# Load media files from production server if they don't exist locally | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteCond %{REQUEST_URI} ^/wp-content/uploads/[^\/]*/.*$ | |
RewriteRule ^(.*)$ https://<insert-production-sitedomain>/$1 [QSA,L] | |
</IfModule> | |
# Sep 2018 - Simplified using css-tricks.com recommendation | |
# Feb 2018 - verified working on local by flywheel |
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
/** | |
* Don't Update Plugin | |
* | |
* @since 1.0.0 | |
* | |
* This prevents you being prompted to update if there's a public plugin | |
* with the same name. | |
* | |
* @author Mark Jaquith | |
* @link http://markjaquith.wordpress.com/2009/12/14/excluding-your-plugin-or-theme-from-update-checks/ |