Ways you might set this up automatically include:
1. Use the database enrolment and authentication plugins to sychronise thigns in Moodle with things in Wordpress.
2. Customise Wordpress to make appropriate web-service calls to Moodle when the user fill in the form.
3. ... there are probably other ways to do it too, but the two above are the most obvious.