function custom_login_form( $args ) { $redirect_url = 'https://christinewilson.ca'; $defaults = shortcode_atts( array( 'echo' => false, 'redirect' => $redirect_url, 'form_id' => 'loginform', 'label_username' => 'Username', 'label_password' => 'Password', 'label_remember' => 'Remember Me', 'label_log_in' => 'Log In', 'id_username' => 'user_login', 'id_password' => 'user_pass', 'id_remember' => 'rememberme', 'id_submit' => 'wp-submit', 'remember' => true, 'value_username' => NULL, 'value_remember' => false ), $args ); $login_args = wp_parse_args( $args, $defaults ); return wp_login_form( $login_args ); } add_shortcode( 'login_form', 'custom_login_form' );