Ecommerce Shopify WordPress Discussion

WordPress – Hide vue form using password protected post [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 22 hours ago. This post was edited and submitted for review 18 hours ago. Improve this question I've created a simple theme using WordPress and Vue for a headless setup. I need to show a form that needs to be restricted using a password on the homepage. I've created a page and set it to protected, but I cannot hide the form and style the password-protected form. Currently, in the template I've assigned to the page, I have this code responsible for loading the vue-made form. get_header(); if(post_password_required()){ echo get_the_password_form(); } ?> <div id="form"></div> <?php get_footer(); ?> The form will be submitted using ajax and axios on the vue side, I don't have a way to interact with php at the moment. Is there any hook to style the password form, and how can I hide correctly the vue form if the password isn't inserted?
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.