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
// Add this to Script to run | |
/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code | |
// Add this to Parameters | |
$REPO |
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
add_filter( 'random_password', 'disable_suggested_password', 10, 2 ); | |
function disable_suggested_password( $password ) { | |
$action = isset( $_GET['action'] ) ? $_GET['action'] : ''; | |
if ( 'wp-login.php' === $GLOBALS['pagenow'] && ( 'rp' == $action || 'resetpass' == $action ) ) { | |
return ''; | |
} | |
return $password; | |
} |
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
// In theme's functions.php or plug-in code: | |
// wp_mail() sents emails only in plain text by default, here we add HTML support | |
function wp_set_content_type(){ | |
return "text/html"; | |
} | |
add_filter( 'wp_mail_content_type','wp_set_content_type' ); | |
function action_woocommerce_applied_coupon( $coupon_code ) { | |
// NOT logged in, return |