How to change footer credit text in Twenty Twenty One theme with a hook?
If I want to change the footer credits, I would usually copy the
footer.php to a child theme and edit the following snippet:
<div class="powered-by"> <?php printf( /* translators: %s: WordPress. */ esc_html__( 'Powered by %s.', 'WordPress' ), '<a href="' . esc_url( __( 'https://wordpress.org/', 'WordPress' ) ) . '">WordPress</a>' ); ?> </div>
I’m trying to learn how to use hooks in WordPress and was wondering how I could do the same thing I did above but with the help of custom hooks in
functions.php. What would be the right way to go about it?