functions.php changes does not apply
-
Hi, first of all, it’s my first time posting here, so if I’ve missed something important, please let me know.
I’ve tried to add the following at the buttom of my functions.php file:
function create_sl_user() { $url = "URL HER"; $user_id = "USERID HER"; $data_string = 'JSON + $user_id'; wp_remote_post($url, array( 'method' => 'POST', 'httpversion' => '1.0', 'headers' => array(), 'body' => $data_string )); } add_action('user_register', 'create_sl_user', 1);But when I save the file and register a new user, nothing happens.
It was supposed to create a new user in my own system.I’ve tested my API with PowerShell and JavaScript, where it works as intended.
//Emil
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘functions.php changes does not apply’ is closed to new replies.