Use wp_login_url
.
<a href="https://wordpress.stackexchange.com/questions/226458/<?php echo wp_login_url(); ?>">login</a>
To redirect to home page after login, add the $redirect
argument and point to home_url()
<a href="https://wordpress.stackexchange.com/questions/226458/<?php echo wp_login_url( home_url() ); ?>">login</a>
Related Posts:
- Remember page before login page, redirect to that page after login
- Woocommerce Login Redirect not working [closed]
- Redirect user after login through woocommerce login page to page with his/her username?
- Woocommerce login not working on the first try
- Woocommerce Login Redirect to old domain
- wordpress/woocommerce login url not redirecting correctly
- Anonymous users can not access website
- How to use woo commerce login to authenticate code php pages?
- Login page so wide [closed]
- Remove login fields from /customer-account page [closed]
- How to add a new endpoint in woocommerce
- Slow Loading Attribute Select – WooCommerce Backend
- Display orders instead of woocommerce my account dashboard for logged in users [closed]
- Detect whether a page is a product subcategory page?
- Get WooCommerce Email Classes in Backend
- Use Hooks to Limit One Comment Per User Per Post – Hide Form if Already Commented
- Display Categories Assigned to a WooCommerce Product
- WooCommerce is slow with many categories [closed]
- How to remove recurring totals information for a particular subscription product? [closed]
- WordPress codex: apply_filters – clarification on creating a new hook on the fly. How do we use it?
- Woocommerce – Move product without price a the end
- How to get all attributes with their terms related to specific Woocommerce product category [closed]
- Extra row / text field to a product page (WooCommerce)
- woocommerce_email_attachments filter arguments [closed]
- Child theme dosn’t overwrite WooCommerce (version 3.4.7)
- How to Show Single Product – 4 Data by ID in Custom Page without over-riding the existing Woo-Commerce
- WOOCommerce redirect after registration to account details
- How can I add an additional action button into the woocommerce admin order page?
- How to add a custom text for order confirmation email template woocommerce
- woocomerce is serving OR Relation instead of AND on taxonomy product_tag
- Woocommerce Subscriptions – Set Billing Interval/Period
- WooCommerce with ACF: custom fields per product variation
- Woocommerce checkout page reload on up dating shipping method
- change wp_login url and redirect users at the same time
- How to clear woocommerce checkout form after pageload
- Is there a plugin available for recurring orders in Woocommerce? [closed]
- call_user_func_array() error in class-wp-hook.php
- Error after woocommerce update from 2.6 to 3.5 [closed]
- Send billing info from woocommerce checkout page to paypal checkout form
- Check if a category has a parent category in WooCommerce REST API
- Remove a higher quantity from stock according to a variation
- Auto generate user email while registration
- How to – proper WordPress 301 redirects?
- Switch position of short description and variations [closed]
- Get specific values in Woocommerce Rest API
- Woocommerce check if email already created order recently [closed]
- Switch to user link
- Woocommerce product editor does not add br
- Can’t find a product by SKU
- How can I edit the Woocommerce product widget html class?
- Can’t show Woocommerce product category description
- Create new email in WooCommerce
- Display vendor phone number on single product page
- 3 Different Prices for Woocommerce Product
- Retrieve Data from Custom Endpoint
- Unable to add product to the cart
- How to create a WooCommerce Product filter based on PHP foreach
- Use ID as slug for product category by default in WooCommerce?
- Woocommerce : Add name filed of checkout page to buyers wordpress display name
- WooCommerce return 404 in the product page
- How to remove Calendar on Woocommerce Category Pages
- How to remove the Sub category product URL Woocommerce
- WC_Structured_Data Class Causing Needless Translation
- Collapsible product categories on sidebar?
- Woocommerce – wc_cart_totals_shipping_method_label() breaking out option tag
- Woocommerce Add prices
- How to limit Woocommerce search to titles only?
- How to invoice Woocommerce customer the remainder balance amount for additional items to an already paid order
- Adding a second button next to the shop button Woocommerc [closed]
- How to set subcategory in Woocommerce?
- Woocommerce – How to Show product tags in shop page
- Bulk edit orders to ‘wc-processing’ status
- Woocommerce Order Reports MYSQL
- woocommerce price filter not working when change currency
- With what hook do I remove WooCommerce existing Product Data Tab form fields?
- After update Woocommerce shop page not showing products
- Remove link for Woocommerce product tags
- WooCommerce Class dosen’t exist
- Add youtube embed to woocommerce variations
- WooCommerce – Large number of product variations (200+)
- Add custom link/pop up under variations dropdown
- Problem in woocommerce.The option “Add product image” is gone.Please help me!
- How to make product free for some customers and paid for others?
- Woocommerce: Some action hooks not firing inside class [closed]
- WooCommerce: Conditional Tag for Wishlist Page
- Display x number of terms and exclude hidden
- Hide woocommerce login form
- How to move WooCommerce Product Data Box below Title Box in Edit
- Custom access given to Admin dashboard
- How to show Woocommerce add to cart form for variable product on custom location [closed]
- Adding more information to a Content Product Category
- Woocommerce | Product page seems differently on my 2 websites
- How to get products outside main loop in Woocommerce?
- registration_errors not working
- Translate Woocommerce tab
- Woocommerce -> gallery images per variation without a plugin? [closed]
- Why is my WordPress admin not working
- Create bookings after subscription renewal
- Change variants URL
- Use a woocommerce hook to create a table and populate it with a query