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">
        /* translators: %s: WordPress. */
        esc_html__( 'Powered by %s.', 'WordPress' ),
        '<a href="' . esc_url( __( '', 'WordPress' ) ) . '">WordPress</a>'

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?

AndrewL64 2 years 2021-03-31T05:10:10-05:00 0 Answers 0 views 0

Leave an answer