Add privacy and terms line to sign in?

Hi there,

It would be good practice to add a small line to the regular sign-in screen to reiterate a site’s terms and privacy each time a user logs in i.e. "By using [site], you agree to our [Terms of Use] and [Privacy Policy]. Thanks!

Sorry for the late reply. Please try this snippet to add a custom text to the form footer:

add_filter(
	'hivepress/v1/forms/user_login',
	function( $form ) {
		$form['footer'] .= '<br><small>By signing in, you agree to the <a href="custom URL here">terms of use</a> and <a href="custom URL here">privacy policy</a>.</small>';

		return $form;
	},
	1000
);
3 Likes

Thank you so much, that worked perfectly!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.