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
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 —register()
{@inheritdoc}
public
register() : mixed
Tags
Return values
mixed —handle_404()
Handle 404
private
handle_404() : 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