Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrei Chira fasterwp

View GitHub Profile
@fasterwp
fasterwp / create-wp-admin-account.sql
Last active Aug 16, 2021 — forked from azizur/create-wp-admin-account.sql
Create a WordPress Administrator user account using SQL
View create-wp-admin-account.sql
SET @username = 'simplenet';
SET @password = MD5('password');
SET @fullname = 'Simplenet Suport';
SET @email = 'noreply@simplenet.ro';
SET @url = 'https://simplenet.ro/';
INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_status`, `display_name`) VALUES (@username, @password, @fullname, @email, @url, NOW(), '0', @fullname);
SET @userid = LAST_INSERT_ID();
INSERT INTO `wp_usermeta` (`user_id`, `meta_key`, `meta_value`) VALUES (@userid, 'wp_capabilities', 'a:1:{s:13:"administrator";b:1;}');
@hofmannsven
hofmannsven / README.md
Last active Oct 30, 2021
Storing WordPress files and database with WP-CLI on the server.
View README.md
@azizur
azizur / create-wp-admin-account.sql
Last active Sep 28, 2021
Create a WordPress Administrator user account using SQL
View create-wp-admin-account.sql
USE __DATABASE__;
SET @username = 'azizur';
SET @password = MD5('password');
SET @fullname = 'Azizur Rahman';
SET @email = 'azizur@example.com';
SET @url = 'http://azizur.com/';
INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_status`, `display_name`) VALUES (@username, @password, @fullname, @email, @url, NOW(), '0', @fullname);
@JiveDig
JiveDig / edd_download_slug.php
Created Nov 6, 2013
Change Easy Digital Downloads (EDD) 'download' slug to something else. Refresh permalinks after changing this.
View edd_download_slug.php
// Change 'download' slug to something else
define('EDD_SLUG', 'books');