register_url WordPress Filter Hook

The register_url Wordpress hook allows you to register a new URL with Wordpress. This can be useful if you want to add a custom URL to your Wordpress site, or if you want to change an existing URL.

apply_filters( 'register_url', string $register ) #

Filters the user registration URL.


Parameters

$register

(string)The user registration URL.


Top ↑

More Information

register_url is a filter applied to the URL returned by the function wp_registration_url() which allows you to have that function direct users to a specific (different) URL for registration.

 

The URL that is passed to this filter is generated by site_url() using the ‘login’ $scheme:

site_url( 'wp-login.php?action=register', 'login' )

Top ↑

Source

File: wp-includes/general-template.php

View on Trac



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
Show More