Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Defining new register slug not working. (6 posts)

Started 2 years, 3 months ago by: Tracedef

  • We’re trying to do whatever we can to fight spam. We would like to change the slug of our registration page and have added the following to our wp-config, but nothing happens:

    define( ‘BP_REGISTER_SLUG’, ‘joinusnow’ );

    This has no effect on our registration slug, what are we missing? Any ideas?

  • Profile picture of Andy Peatling Andy Peatling said 2 years, 3 months ago:

    Make sure you have not added anything below the “Stop editing!” line in wp-config.php.

  • Profile picture of Andy Peatling Andy Peatling said 2 years, 3 months ago:

    I’ve just confirmed this works on 1.2-beta.

  • Profile picture of John James Jacoby John James Jacoby said 2 years, 3 months ago:

    @tracedef, make sure the slug isn’t defined in more than one place, otherwise it might be getting defined ahead of where you are defining it. I know that you’re also running a custom theme, so is it possible that it’s hard-coded in your theme instead of referencing the constant?

  • Andy: You hit it on the head…. forgot about that pesky “Stop editing” line….. :)

  • Profile picture of AndreMartin AndreMartin said 1 year, 6 months ago:

    Adding BP_REGISTER_SLUG worked in terms of now the signup form is on a new page (the new slug) *but* the wp-login.php?action=register still points to /register which of course shows a “page not found” given the new slug is not “register”. I checked everywhere that I thought could be a “register” URL setting and the .htaccess but there is none. Where does that “/register” direction come from?