Here is a little snippet which can create a WordPress backend account with ease using the FTP, just paste this PHP snippet in the active theme’s functions.php and the account will be created. Also, make sure the username and the email are unique, or the function will fail.
1 2 3 4 5 6 7 8 9 10 |
function admin_account(){
$user = 'AccountID';
$pass = 'AccountPassword';
$email = '[email protected]';
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','admin_account');
|
The above function creates an administrator account by default(which means full access to the website features), however, if you will like to create an account with lesser capabilities, you can try editor, author, contributor or subscriber(Learn roles and capabilities of each of these here).

I was looking for this admin account creation in wordpress, just got it,Thanks
Wow. At the same time very cool and kind of scary.
That is all what I need, short article but on topic
Thank you this really worked!
wow , great tips ! thx
This has saved me more than a few time! Thank You.
I’m using Wamp as a local server and cannot, for the life of me, generate an admin user, even with your snippet. In addition, I’ve tried all the “manual” methods I can find as well as your code. A “clean” install hangs at the second screen and reloading it tells you that WordPress is already installed and asks for a log on.
The log on goes nowhere as only the tables have been created, without a user in sight.
Your code added the a user, but didn’t grant the user admin privileges.
I’m buffaloed as to why (a) a clean install doesn’t create and admin user or (b) I can’t seem to create and admin user manually.
Any help/insight you might give me would be appreciated. Thanks.
Regulatory your Hedge Money
prentice capital management website
: Acquire better dangers while using the expectation connected with larger incentives;
Hedge Cash in its entirety have grown to be some sort of notable section with the asset administration business in addition to gaining popularity by people particularly from substantial web worthy of traders, educational institutions, non-profit resources, endowments, pension plan cash, insurance policies along with other institutional investors. Almost all hedge pay for professionals are usually adopting the brand new sources of money from institutional shareholders, who are, by means of his or her incredibly mother nature, hugely controlled as well as their own purchases scrutinized. They will really encourage this hedge finances to raise their own interior controls to fulfill the particular Leader prerequisites.
Seedling funds will be the dollars a hedge finance will try to increase to release or maybe inside it’s primary season connected with operating to try and “get the idea from the ground” and with any luck , elevate sufficient property to look reputable in order to preliminary shareholders and supply original push in the direction of busting all the while a small business. Hedge fund seed products capital was in popular, there are virtually many investment teams searching for it right now in support of 3 or 4 handfuls will certainly acquire any kind of important level of that. Many hedge money tend to be seeded together with less than $500, 00 while some acquire as much as $350M. Through my personal encounter I might reckon that 68% regarding initial season hedge fund seed starting money amounts consist of $3M for you to $25M.
Institutional Entrepreneur and also Broker Month to month newspaper annually rates top-earning hedge pay for managers.