\Barn2\Plugin\WC_Private_StoreStore_Protector

This class provides the main functions to lock down the entire store on the front end.

This includes locking down the store pages, products, categories, tags, etc, as well as hiding items from navigations menus, removing WooCommerce widgets, and hiding from search results.

Summary

Methods
Properties
Constants
register()
protect()
maybe_prevent_caching()
maybe_protect_store_page()
protect_widgets()
hide_store_in_pages_widget()
protect_nav_menus()
hide_store_in_search()
hide_products_in_search()
meta_robots_noindex_head()
empty_shortcode()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
replace_shortcodes()
prevent_caching()
prevent_indexing()
show_protected_page_content()
is_wc_endpoint()
is_protected_page()
$is_protected_page
N/A

Properties

$is_protected_page

$is_protected_page :

Type

Methods

register()

register()

protect()

protect()

maybe_prevent_caching()

maybe_prevent_caching()

maybe_protect_store_page()

maybe_protect_store_page()

protect_widgets()

protect_widgets(  $sidebars_widgets)

Parameters

$sidebars_widgets

hide_store_in_pages_widget()

hide_store_in_pages_widget(  $excludes)

Parameters

$excludes

protect_nav_menus()

protect_nav_menus(  $menu_items,  $menu,  $args)

Parameters

$menu_items
$menu
$args

hide_store_in_search()

hide_store_in_search(  $query)

Parameters

$query

hide_products_in_search()

hide_products_in_search(  $where,  $query)

Parameters

$where
$query

meta_robots_noindex_head()

meta_robots_noindex_head()

empty_shortcode()

empty_shortcode(  $atts = array())

Parameters

$atts

replace_shortcodes()

replace_shortcodes()

prevent_caching()

prevent_caching()

prevent_indexing()

prevent_indexing()

show_protected_page_content()

show_protected_page_content()

is_wc_endpoint()

is_wc_endpoint(  $endpoint)

Parameters

$endpoint

is_protected_page()

is_protected_page()