wp_registration_url() WordPress Function

The wp_registration_url() function allows you to retrieve the URL for user registration. This is useful if you want to create a custom registration form or link to the registration page from elsewhere on your site.

wp_registration_url() #

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


Return

(string) User registration URL.


Top ↑

Source

File: wp-includes/general-template.php

function wp_registration_url() {
	/**
	 * Filters the user registration URL.
	 *
	 * @since 3.6.0
	 *
	 * @param string $register The user registration URL.
	 */
	return apply_filters( 'register_url', site_url( 'wp-login.php?action=register', 'login' ) );
}


Top ↑

Changelog

Changelog
VersionDescription
3.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More