[Snippet] Programmatically add a WordPress User
Posted on September 15, 2011
Here's how I would programmatically add a WordPress User
- require('../wp-blog-header.php');
-
- $user_name ='kieran';
- $user_email = 'kieran@bl0ke.org';
-
- $user_id = username_exists( $user_name );
- if ( !$user_id ) {
- $random_password = wp_generate_password( 12, false );
- $user_id = wp_create_user( $user_name, $random_password, $user_email );
- } else {
- $random_password = __('User already exists. Password inherited.');
- }
Keeping an online reputation – Three
Posted on December 7, 2010
Don’t threaten a “google war” if you don’t get your way.
Thats all!
Keeping an online reputation – Two
Posted on December 6, 2010
Counter every negative comment with a positive outcome, or, ignore it; interacting with your community works great but you have to draw a line in hairy situations.
Thats all!
Keeping an online reputation – One
Posted on December 5, 2010
Never send threatening e-mails, posts or comments online; the Internet has a wonderful way of archiving rash comments you later regret.
Thats all!
SSH Security Ramblings
Posted on November 9, 2010
SSH - Secure Shell isn't that secure. If you're not using it behind a Layer 7 firewall or an enhanced security daemon like cPanel's cPHulk or even just the default config isn't secure.
What can you do?



