You can load the WP environment in order to verify the user’s login. Have a look at these previous answers:
https://stackoverflow.com/questions/15304926/how-to-include-wordpress-functions-in-custom-php-file
https://stackoverflow.com/questions/47251705/load-wordpress-page-content-from-external-php
Include WP_Query in my own PHP file?
You might also find it helpful to add define('WP_USE_THEMES', false); to stop WP from loading the theme, etc, if it’s not needed in your php script.
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 change redirect code? [duplicate]
- Login page so wide [closed]
- Remove login fields from /customer-account page [closed]
- Account Status/Login on Main Menu with Avatar Pictures
- Product categories don’t appear as option to build menu
- Woocommerce show cross sells on singe product page [closed]
- How to turn off WooCommerce user registration and manually create accounts?
- WooCommerce Change Product Global Attribute Value via CRUD for Simple Product [closed]
- Change WooCommerce Image Size in One Product CAtegory
- Is there a way to get customers logged out without calling wp-login.php?
- WooCommerce checkout: How can I change $field_container of a checkout field?
- Woocommerce Shop Price Position
- How to disable users from editing billing address in WooCommerce checkout?
- Move WooCommerce product tabs out of the tabs [closed]
- Is it possible to recalculate cart prices? [closed]
- Show add to cart button on shop woocommerce
- How do I hide the purchase note in the WooCommerce ‘order completed’ email?
- Woocommerce – Override the default templates location under the theme directory
- How to hide out of stock products in Related Products via custom query in WooCommerce
- Changing Woocommerce language without changing the language in Dashboard admin WordPress
- WooCommerce Country Drop Down colours CSS [closed]
- Fatal error: Call to undefined method WooCommerce::nonce_field()
- Where do I find where woocommerce stores product data in cpanel file manager?
- Woocommerce wp-admin search products through custom meta value too
- Function to recalculate shipping costs on subscriptions after renewal with Automatewoo
- Creating a multisite registration form that also creates a woocommerce post
- How to show tag count for individual product post in wordpress woocommerce
- Checkout is blocked with blockUI when using action woocommerce_cart_calculate_fees
- Checkout form looks terrible [closed]
- API returns blank response after installing & uninstalling WP-rest-api plugin
- Tried to create a user role that can only edit user information, but my test account cannot view the dashboard. What am I missing?
- Filtering variable WooCommerce products by stock level using meta_query
- How can I run a multi language WordPress site in two folders in one install? [closed]
- Add custom field to Woocommerce add new attribute / edit page
- woocommerce axios react
- Woocommerce hook on address field change [closed]
- Maintenance mode just for WooCommerce shop pages [closed]
- Custom email template for a specific product category
- Same request Mysql/Php not same result
- WooCommerce Registration redirect based on page ID
- Get woocommerce coupon code
- Woocommerce change price in cart when discounted
- Woocommerce Remove Tax by Product Type
- get_posts $args won’t accept array as one of the criteria?
- WooCommerce print subcategory of product
- Woocommerce – sell a certain category by unit, another by weight? How?
- Add custom parameters to Woocommerce add to cart link
- How to automatically change the status of product from draft to published when stock qty change from 0 > 1
- Woocommerce checkout page issue – Payment methods not loading – strange “Credit/Debit Card Secure Payment” form
- Sort products by Sale price and stock status
- Delete method giving 500 error, for this endpoint /wc/store/cart/items
- In woocommerce product details not showing
- Re-arrange the Woocommerce checkout page layout
- How to sort products by price ASC and place all no price products to the end? (Woocommerce)
- Parameters in woocommerce_before_add_to_cart_button hook
- How can I get a get a list of customers from a list of email addresses?
- WordPress Woocommerce Endpoint URL
- Will ‘private’ status prevent Woocommerce products to be indexed by search engines?
- Add to cart is not visible in product page
- Notice: Trying to get property of non-object in
- French accented text replaced with ? in woocommerce product list
- Trying to figure out why an error is returned when trying to add an item to the basket on this website
- Conditionnaly replace “Read more” text WooCommerce products
- WooCommerce/Authorize.net interface problem
- Prevent user from changing any account data once it is setup
- Redirect After Registration on Specific Link
- Site with WooCommerce section moved to HTTPS – all pages except home and main store are 404s
- Multiple quantities with options
- how to add custom reviews button in woocommerce order complete generated mail
- Click Count on Download a File
- How to add coupon expiry date into the followup emails?
- Not all strings are translated
- Custom Woocommerce checkout filed yields a Json error when validating [closed]
- access Woo commerce | WordPress methods externally
- How to display Woocommerce catagories
- Woocommerce set single city to sell to
- eCommerce solution doesn’t want to display its shortcodes or any content where it’s set to [closed]
- Woocommerce hidden fields with meta keys and values. how?
- How do I make a diagonal strikethrough on wordpress? [closed]
- Woocommerce – Remove ‘Buy Product’ Button from shop page [closed]
- Add woocommerce.css in template?
- 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
- Woocommerce products permalink based on SKU
- Woocommerce ajax checkout get wc_checkout_params is not defined
- Struggling with Per-Item Shipping and Classes
- Woocommerce plugin increasing Database size
- Woocommerce deleted and replaced my WordPress front/page. How do I restore my original page?
- Snippet to Log “Payment Failed” in Syslog [closed]