wp_registration_url

Returns the URL that allows the user to register on the site.

Description

(string) wp_registration_url(); 

Returns (string)

User registration URL.


Usage

  1. if ( !function_exists( 'wp_registration_url' ) ) { 
  2. require_once ABSPATH . WPINC . '/general-template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wp_registration_url(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/general-template.php  
  1. function wp_registration_url() { 
  2. /** 
  3. * Filters the user registration URL. 
  4. * @since 3.6.0 
  5. * @param string $register The user registration URL. 
  6. */ 
  7. return apply_filters( 'register_url', site_url( 'wp-login.php?action=register', 'login' ) );