Tribe__Events__Community__Main::login_form( string $caption = '' )
Outputs login form.
Contents
Parameters
- $caption
-
(string) (Optional)
Default value: ''
Return
(string) HTML login form
Source
File: src/Tribe/Main.php
public function login_form( $caption = '' ) {
/**
* Fires immediately before the login form is rendered (where Community
* Events requires that the user logs in).
*/
do_action( 'tribe_community_before_login_form' );
ob_start();
echo '<p>' . $caption . '</p>';
wp_login_form();
if ( get_option( 'users_can_register' ) ) {
wp_register( '<div class="tribe-ce-register">', '</div>', true );
echo ' | ';
}
$this->lostpassword_link();
/**
* Fires immediately after the login form is rendered (where Community
* Events requires that the user logs in).
*/
do_action( 'tribe_community_after_login_form' );
return ob_get_clean();
}
Changelog
| Version | Description |
|---|---|
| 4.6.3 | Wrapped in div.tribe-community-events |
| 3.1 | Introduced. |