New answers tagged

-2

<?php global $post; if ( post_password_required( $post ) ) { echo get_the_password_form( $post ); } else { $wp_query_pass = new WP_Query('&cat=9' . '&paged=' . $paged); while ($wp_query_pass->have_posts()) : $wp_query_pass->the_post(); ?> <div class="post-list"> <div ...


2

This is because password protection applied on get_the_content() function. And you are not using it instead you've written your own custom loop. So you can alter the code before loop and check if page is not password protected using function post_password_required() and then display form using get_the_password_form() else display loop. Example:- if ( ...


1

I was missing something. Woocommerce accounts are different from normal Wordpress accounts. The code that I was looking for was: function woocommerce_new_pass_redirect( $user ) { wp_redirect( get_permalink(woocommerce_get_page_id('myaccount'))); exit; } add_action( 'woocommerce_customer_reset_password', 'woocommerce_new_pass_redirect' ); I found it ...



Top 50 recent answers are included