Hide_Prices implements Registerable, Standard_Service
Alternate Content Handler
Tags
Interfaces, Classes and Traits
- Registerable
- Standard_Service
Table of Contents
- get_alternate_content_html() : mixed
- hide_price() : mixed
- Removes the variable add to cart template when prices are hidden
- is_purchasable() : bool
- Controls whether products should be purchasable
- price_content_filter() : string
- Replace the price with the alternate content (hide prices text).
- register() : mixed
- {@inheritdoc}
- remove_price_in_structured_data_product_offer() : mixed
- Remove the price from the structured data.
- render_alternate_content() : mixed
Methods
get_alternate_content_html()
public
get_alternate_content_html() : mixed
Tags
Return values
mixed —hide_price()
Removes the variable add to cart template when prices are hidden
public
hide_price() : mixed
Tags
Return values
mixed —is_purchasable()
Controls whether products should be purchasable
public
is_purchasable(bool $is_purchasable, mixed $product) : bool
Parameters
- $is_purchasable : bool
- $product : mixed
Tags
Return values
bool —price_content_filter()
Replace the price with the alternate content (hide prices text).
public
price_content_filter(string $price_html, WC_Product $product) : string
Parameters
- $price_html : string
- $product : WC_Product
Tags
Return values
string —register()
{@inheritdoc}
public
register() : mixed
Tags
Return values
mixed —remove_price_in_structured_data_product_offer()
Remove the price from the structured data.
public
remove_price_in_structured_data_product_offer(mixed $markup_offer, mixed $product) : mixed
Parameters
- $markup_offer : mixed
- $product : mixed
Tags
Return values
mixed —render_alternate_content()
public
render_alternate_content() : mixed