wp_registration_url

函数
wp_registration_url ( No parameters )
返回值
  • (string) User registration URL.
定义位置
相关方法
wp_extract_urlswp_register_duotone_supportwp_registerwpmu_log_new_registrationswp_register_widget_control
引入
3.6.0
弃用
-

wp_registration_url: 这个函数返回注册页面的URL。

返回允许用户在网站上注册的URL。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
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' ) );
}
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' ) ); }
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' ) );
}

常见问题

FAQs
查看更多 >