Skip to content
Docs
Get RestroPress

Filter

rpress_login_form

Updated
On this page

Filters the HTML of the login form returned by rpress_login_form().

The function captures the output of the login shortcode template and passes the resulting string through this filter. Use it to wrap or append markup to the login form.

Parameters#

ParameterTypeDescription
$htmlstringRendered login form HTML.

Return value#

string. The HTML to output.

Example#

function my_login_form( $html ) {
	return $html . '<p class="my-login-help">' . esc_html__( 'Forgot your password? Contact the restaurant.', 'my-plugin' ) . '</p>';
}
add_filter( 'rpress_login_form', 'my_login_form' );

Source#

Applied in:

  • includes/login-register.php (line 29), in rpress_login_form()

See also#

Was this page helpful?