How to remove or change copyright GeneratePress theme

How to remove or change copyright GeneratePress theme free version – Go to functions.php in wordpress (Appearance – theme editor – functions.php). Copy the code below and paste in functions.php

function new_footer () {	
	$copyright = '<div class="creds"><p>© ' . date('Y') . ' <a href="https://example.com/">example.com</a></p></div>';
	return $copyright;
}
add_filter( 'generate_copyright', 'new_footer' );

Reference:
https://www.wplogout.com/remove-powered-by-generatepress/