I've looked at many WP development forums but I couldn't find any answer, unfortunately. If anybody can help me. Actually, I am not sure if that kind of problem can be solved with WordPress at all.
My problem is the following.
When creating a new user in WordPress admin, the admin is offered a screen like the photo I am attaching here.
After the user has already been created, the admin is redirected back to the page containing all the users.
My problem is, how can I add some additional tests on the user that is being created. The question is related to development of a WP plugin, php, which action hooks I can use for that purpose. I want to stay on the same page (my_domain/wp-admin/user-new.php) but after I push the 'Add New User' button, I want only the content of that page to change, the rest (I mean the admin menu on the left side to stay there) but only the content (the right area) to change (here I want to make my additional tests on that user), and showing a 'Next' button at bottom.
I've been thinking about adding some parameters in the URL but I do not know how to insert my code so that my problem can be solved. I may be wrong, that was the only thing that came into my mind. Is that possible to be implemented in WP at all? I know how to develop the pages, the only thing I cannot do is how to switch the right content but still stay on the same (add-new user-page). All the lectures I've been watching on WP plugin development, theme development, solve some not so complex problems - creating new content types, adding new menu/submenu items, and the pages related to these items, ajax and so on.
Could you please give me some directions(code snippets, hooks I can use), some code examples maybe, I say again, if that problem can be solved in WP at all.
Thank you in advance. Best regards, George!
wp-includes/user.php
there's a few functions called one of the action hooks I can see isdo_action( 'user_register', $user_id );
on around line 2000.