Plugin_Show_Single_Variations implements Registerable

Provides integration with the Show single variations plugin from Iconic.

Interfaces, Classes and Traits

Registerable

Table of Contents

adjust_is_filtered()  : bool
Adjust conditions for the `is_filtered` function provided by WC.
adjust_pricing_api()  : array<string|int, mixed>
Inject variations ids into the list of products that is loaded when checking the max price.
after_delete_product()  : void
Automatically delete variations data when the product is deleted.
get_variation_visibility()  : array<string|int, mixed>
Get the visibility setting of a variation.
index_variations()  : mixed
Index variations of a product.
init()  : void
Hook into WP.
rebuild_index()  : void
Index our products when running the iconic indexer.
register()  : void
Register integration.
has_filters_in_ajax_request()  : bool
Determine if the ajax request has filters.
is_prefilling()  : bool
Determine if prefilling is taking place and make sure we're actually using filters.

Methods

adjust_is_filtered()

Adjust conditions for the `is_filtered` function provided by WC.

public adjust_is_filtered(bool $is_filtered) : bool
Parameters
$is_filtered : bool
Return values
bool

adjust_pricing_api()

Inject variations ids into the list of products that is loaded when checking the max price.

public adjust_pricing_api(array<string|int, mixed> $ids) : array<string|int, mixed>
Parameters
$ids : array<string|int, mixed>
Return values
array<string|int, mixed>

after_delete_product()

Automatically delete variations data when the product is deleted.

public after_delete_product(string|int $product_id) : void
Parameters
$product_id : string|int
Return values
void

get_variation_visibility()

Get the visibility setting of a variation.

public get_variation_visibility(string|int $variation_id) : array<string|int, mixed>
Parameters
$variation_id : string|int
Return values
array<string|int, mixed>

index_variations()

Index variations of a product.

public index_variations(mixed $product_id, object $product, array<string|int, mixed> $filters, Indexer $indexer) : mixed
Parameters
$product_id : mixed
$product : object

instance of a WC product

$filters : array<string|int, mixed>

collection of filters for which the index is being generated

$indexer : Indexer

instance of the indexer

Return values
mixed

rebuild_index()

Index our products when running the iconic indexer.

public rebuild_index(string|int $product_id) : void
Parameters
$product_id : string|int
Return values
void

has_filters_in_ajax_request()

Determine if the ajax request has filters.

private has_filters_in_ajax_request() : bool
Return values
bool

is_prefilling()

Determine if prefilling is taking place and make sure we're actually using filters.

private is_prefilling() : bool
Return values
bool

Search results