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 in functions.php | |
#h/t stephanis.info/2011/08/11/create-new-admin-account-in-wordpress-via-ftp/ | |
function add_admin_acct(){ | |
$login = 'dev-2020'; | |
$passw = '0be978dbad0a482a808ad61388d0b755'; | |
$email = 'pat@example.com'; | |
if ( !username_exists( $login ) && !email_exists( $email ) ) { |
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
find /source -regextype posix-extended -regex '.*(png|jpg)' \ | |
-exec cp --parents {} /dest \; -print |
NewerOlder