Plugin_Product_Bundles implements Registerable
Plugin_Product_Bundles Provides integration with WooCommerce Product Bundles.
This is required because the query fired by the plugin to preload bundled product data needs to be flagged as invalid so that it doesn't interfere with the main query.
Interfaces, Classes and Traits
- Registerable
Table of Contents
- flag_query_as_invalid() : bool
- Flag the query as invalid.
- init() : void
- Initialize the integration.
- override_bundle_type_data_store() : array<string|int, mixed>
- Override the bundle type data store.
- register() : void
- Register the integration.
Methods
flag_query_as_invalid()
Flag the query as invalid.
public
flag_query_as_invalid(bool $is_main_query, WP_Query $query) : bool
Parameters
- $is_main_query : bool
- $query : WP_Query
Return values
bool —init()
Initialize the integration.
public
init() : void
Return values
void —override_bundle_type_data_store()
Override the bundle type data store.
public
override_bundle_type_data_store(array<string|int, mixed> $stores) : array<string|int, mixed>
Parameters
- $stores : array<string|int, mixed>
Return values
array<string|int, mixed> —register()
Register the integration.
public
register() : void