Skip to content
Docs
Get RestroPress

Filter

rpress_register_form

Updated
On this page

Filters the HTML of the registration form returned by rpress_register_form().

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

Parameters#

ParameterTypeDescription
$htmlstringRendered registration form HTML.

Return value#

string. The HTML to output.

Example#

function my_register_form( $html ) {
	return '<div class="my-register-wrap">' . $html . '</div>';
}
add_filter( 'rpress_register_form', 'my_register_form' );

Source#

Applied in:

  • includes/login-register.php (line 47), in rpress_register_form()

See also#

Was this page helpful?