WordPress函数:wp_registration_url

一、函数简介

该Wordpress函数是用来输出显示网站注册的URL字符串。

<?php echo wp_registration_url(); ?>

二、函数参数

三、函数案例

<?php echo wp_registration_url(); ?>

四、调试效果

五、源代码

/**
 * Returns the URL that allows the user to register on the site.
 *
 * @since 3.6.0
 *
 * @return string User registration URL.
 */
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' ) );
}

THE END