Snippets

Arturo Gallegos Agregar Usuario Wordpress

Created by Arturo Gallegos last modified
<?php 
include_once __DIR__ . '/wp-blog-header.php';

$user = wp_insert_user(array(
	'user_pass' => 'your_pass',
	'user_email' => 'your_email',
	'user_login' => 'your_name',
	'role' => 'administrator'
                       ));
var_dump($user);

Comments (0)