1

I’m creating a custom registration form for my website. Every tutorial has this call in the form

require_once(ABSPATH . WPINC . '/registration.php');

I’ve read that registration.php has been depreciated quite a long time ago. Which file must be called upon, what is the proper way?

  • Are you trying to create a registration form outside of WordPress and store the users in the WP database or will your form be inside WordPress? You don't need to include anything if you're inside WordPress. – Andrew Bartel May 12 '13 at 18:38
  • my registration form will be outside wp and yes, the new users will be saved in the wp database – Pieter Goosen May 12 '13 at 18:48
  • I'm not well versed with Registration form. But I found this code <?php require_once(ABSPATH . WPINC . '/registration.php' ); require_once(ABSPATH . WPINC . '/pluggable.php' ); ?> in Simplr Registration Form plugin. – Mayeenul Islam May 12 '13 at 18:49
  • possible duplicate of How to create custom LOGIN and REGISTRATION forms? – danyo Jan 22 '14 at 12:04
0

If you look at the source of the file you can see that it doesn't do anything even if you were to include it except add a warning that "This file no longer needs to be included". So those tutorials are out of date. You don't need to include it.

The file you actually need to include, if any file at all, depends on what you want to do exactly, and you don't explain that in the question. A number of registration functions are in wp-login.php which is very inconvenient because you can include that file to get at the functions without also getting a bunch of echoed HTML as well.

  • i just want to create a registration form on one of my website's page templates and add a few fields to the form – Pieter Goosen May 12 '13 at 19:18
  • 1
    There are a number of "custom registration form" questions here. Check those out. Look to the right under "Related" to get started. – s_ha_dum May 12 '13 at 19:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.