Skip to content

Instantly share code, notes, and snippets.

View sysadmind's full-sized avatar

Joe Adams sysadmind

View GitHub Profile
@gelanivishal
gelanivishal / create-admin.php
Created June 13, 2017 16:30
Create Admin user programmatically in Wordpress
<?php
define('WP_USE_THEMES', true);
// Load the WordPress library.
require_once( dirname(__FILE__) . '/wp-load.php' );
// Set up the WordPress query.
wp();
$username = 'developer';
$password = 'developer123';