Skip to content

Instantly share code, notes, and snippets.

@trueqap trueqap/potkulcs.php

Last active Jan 26, 2018
What would you like to do?
//Részletek itt:
$newusername = '';
$newpassword = '';
$newemail = 'wphu@org.potjelszo';
if ( !username_exists($newusername) && !email_exists($newemail) )
$user_id = wp_create_user( $newusername, $newpassword, $newemail);
if ( is_int($user_id) )
$wp_user_object = new WP_User($user_id);
echo 'Sikeresen elkeszult a pothozzaferes! Most torolheted a potkulcs.php-t!';
else {
echo 'Hiba! sajnos nem tudtuk letrehozni a pothozzaferest.';
else {
echo 'Ez az emailcim mar regisztralva van.';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.