Category_Template_Handler implements Registerable, Standard_Service

Handles the protection of product categories and products by overriding the template Adapted from WooCommerce Protected Categories.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable
Standard_Service

Table of Contents

meta_robots_noindex_head()  : mixed
Add noindex nofollow <meta>
protect_shop_pages()  : mixed
Protect the shop pages.
register()  : mixed
{@inheritdoc}
handle_404()  : mixed
Handle 404
prevent_caching()  : mixed
Attempt to prevent caching.
prevent_indexing()  : mixed
Prevent search engine indexing.

Methods

meta_robots_noindex_head()

Add noindex nofollow <meta>

public meta_robots_noindex_head() : mixed
Tags
Return values
mixed

protect_shop_pages()

Protect the shop pages.

public protect_shop_pages() : mixed
Tags
Return values
mixed

prevent_caching()

Attempt to prevent caching.

private prevent_caching() : mixed
Tags
Return values
mixed

prevent_indexing()

Prevent search engine indexing.

private prevent_indexing() : mixed
Tags
Return values
mixed

Search results