Filter hook 'register_url'

in WP Core File wp-includes/general-template.php at line 485

View Source

register_url

Filter Hook
Description
Filters the user registration URL.

Hook Information

File Location wp-includes/general-template.php View on GitHub
Hook Type Filter
Line Number 485

Hook Parameters

Type Name Description
string $register The user registration URL.

Usage Examples

Basic Usage
<?php
// Hook into register_url
add_filter('register_url', 'my_custom_filter', 10, 1);

function my_custom_filter($register) {
    // Your custom filtering logic here
    return $register;
}

Source Code Context

wp-includes/general-template.php:485 - How this hook is used in WordPress core
<?php
 480  	 *
 481  	 * @since 3.6.0
 482  	 *
 483  	 * @param string $register The user registration URL.
 484  	 */
 485  	return apply_filters( 'register_url', site_url( 'wp-login.php?action=register', 'login' ) );
 486  }
 487  
 488  /**
 489   * Provides a simple login form for use anywhere within WordPress.
 490   *

PHP Documentation

<?php
/**
	 * Filters the user registration URL.
	 *
	 * @since 3.6.0
	 *
	 * @param string $register The user registration URL.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-includes/general-template.php
Related Hooks

Related hooks will be displayed here in future updates.