# content-protector/4.3.17/inc/templates/woo-category-protected.php

Passster – Password Protect Pages and Content, version 4.3.17. 57 lines.

- Page: https://pluginprobe.com/plugins/content-protector/4.3.17/code/inc/templates/woo-category-protected.php
- Raw: https://pluginprobe.com/plugins/content-protector/4.3.17/raw/inc/templates/woo-category-protected.php
- Modified: 2026-10-02T12:50:10+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/content-protector/4.3.17/code/inc/templates/woo-category-protected.php#L10-L20`.

```php
<?php
/**
 * Template used when a WooCommerce product or product category is password-protected.
 * Mirrors WooCommerce's archive-product.php structure exactly, replacing only the
 * product loop section with the Passster password form.
 *
 * @package Passster
 */

defined( 'ABSPATH' ) || exit;

get_header( 'shop' );

/**
 * Hook: woocommerce_before_main_content.
 *
 * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
 */
do_action( 'woocommerce_before_main_content' );

?>
<header class="woocommerce-products-header">
	<?php if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?>
		<h1 class="woocommerce-products-header__title page-title"><?php woocommerce_page_title(); ?></h1>
	<?php endif; ?>

	<?php
	/**
	 * Hook: woocommerce_archive_description.
	 *
	 * @hooked woocommerce_taxonomy_archive_description - 10
	 * @hooked woocommerce_product_archive_description  - 10
	 */
	do_action( 'woocommerce_archive_description' );
	?>
</header>

<?php

echo \passster\PS_Category_Lock::get_woo_protected_form(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped

/**
 * Hook: woocommerce_after_main_content.
 *
 * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
 */
do_action( 'woocommerce_after_main_content' );

/**
 * Hook: woocommerce_sidebar.
 *
 * @hooked woocommerce_get_sidebar - 10
 */
do_action( 'woocommerce_sidebar' );

get_footer( 'shop' );

```
