我有一個自定義登錄表單上頭自定義登錄WooCommerce WordPress的
<form method="post" action="http://pwhs.ph.local/wp-login.php">
<input type="text" placeholder="username" name="username" id="username" />
<input type="password" name="password" placeholder="password" id="password" />
'.wp_nonce_field('login-nonce').'
<input type="submit" class="btn" name="login" value="Login" />
<input type="submit" class="btn" name="register" value="Register" />
<a id="lost-password" href="'.esc_url(home_url('/my-account/lost-password/')).'">Lost your password?</a>
</form>
它登陸用戶,但它引導到WP儀表盤,它應該登錄用戶WooCommerce。我可以將數據導向WooCommerce的form-login.php,但我怎樣才能登錄它而不是顯示WooCommerce的登錄表單?
應該沒有登錄頁面,它應該直接從頭上的字段 – Jai