WP – Redirect to home page after successful login

So I needed a front-end login page that redirects you to the homepage after a successful login. Using the default WP login form, you only need to supply the ‘$args’ needed to redirect after the login. See code below. <!– wp_login_form() is located in wp-includes/general-template.php. Line 470 –> <?php $args = array( ‘redirect’ => ([…]