templates/filters/global/reset-filters.php
Filters "Reset filters" button classes
Params
string $classes Button classes. Default: "btn btn-primary yith-wcan-reset-filters reset-filters"
Returnstring
Filters "Reset filters" button label
Params
string $label Button label. Default: "Reset filters".
Returnstring
templates/filters/global/apply-filters.php
Filters "Apply filters" button classes
Params
string $classes Button classes. Default: "btn btn-primary apply-filters"
Returnstring
Filters "Apply filters" button label
Params
string $label Button label. Default: "Apply filters".
Returnstring
templates/filters/filter-tax/items/label.php
Filters size of the attachment used for the label design in tax filters
Paramsstring $size Default: "thumbnail"
YITH_WCAN_Filter $filter Filter object.
Returnstring
templates/filters/filter-tax/items/color.php
Filters size of the attachment used for the color design in tax filters
Paramsstring $size Default: "thumbnail"
YITH_WCAN_Filter $filter Filter object.
Returnstring
plugin-options/seo-options.php
Filters Seo panel options
Params
array $options Panel options.
Returnarray
plugin-options/preset-options.php
Filters Preset options
Params
array $options Preset options.
Returnarray
plugin-options/general-options.php
Filters General panel options
Params
array $options Panel options.
Returnarray
plugin-options/filter-preset-options.php
Filters "Filter Preset" options
Params
array $options "Filter Preset" options.
Returnarray
plugin-options/filter-options.php
Filters flag representing whether taxonomy supports images or not
Paramsbool $supports_images Whether taxonomy supports images.
string $taxonomy_slug Taxonomy slug.
Returnbool
Filters "Filter" options
Params
array $options Filter options.
Returnarray
plugin-options/customization-options.php
Filters the default color used in the color picker
Params
string $default_color Default value: '#A7144C'.
Returnstring
Filters Customization panel options
Params
array $options Panel options.
Returnarray
includes/functions-yith-wcan.php
Allow third party code to hijack plugin behaviour
If someone use this filter, plugin will use returned value instead of calling
get_terms to query database and retrieve matching terms
Paramsarray|bool $result Default value: false;
array $args Query args.
Returnarray|bool
Filters flag representing whether brand plugin is active or not
Params
bool $active Whether brands plugin is enabled.
Returnbool
Filters path where plugin searches for internal templates
Paramsstring $path Template path.
string $template Searched template.
array $atts Attributes to use in the template.
bool $echo Whether template should be included or printed.
Returnstring
Filters label used in review filter, for a specific rating value
Params
string $label Label to filter: %s represents specific rating value.
Returnstring
includes/class-yith-wcan.php
List of required files
Params
array $files List of required files.
Returnarray
Params
array $compatibilities List of compatible plugins.
Returnarray
includes/class-yith-wcan-widgets.php
Params
array $widgets List of available widgets.
Returnarray
includes/class-yith-wcan-shortcodes.php
Params
array $shortcodes List of available shortcodes.
Returnarray
includes/class-yith-wcan-session.php
Filters base url used for sessions
Params
string $url Base url.
Returnstring
Filters default query vars used for sessions
Params
array $query_vars Default: empty array.
Returnarray
Filters session share url
Params
string $url Share url.
Returnstring
Number of seconds of life for any giver session
Paramsint $ttl Session ttl.
int $session_id Id of current session.
YITH_WCAN_Session $session Current session.
Returnint
Filters number of seconds that should be added to a session expiration time
Paramsint $increment Number of seconds.
int $session_id Current session id.
YITH_WCAN_Session $session Current session.
Returnint
includes/class-yith-wcan-session-factory.php
Params
string $param Filter session param.
Returnstring
includes/class-yith-wcan-query.php
Filters query string parameter used to determine if filtering is taking place
Params
string $query_param Parameter used as flag.
Returnstring
Params
array $labels List of filters' labels
Returnarray
Allow third party code to filter list of supported taxonomies for filtering action
Params
array $supported List of supported taxonomies.
Returnarray
Filters the list of query string parameters supported as "filtering query params"
Params
array $params Supported parameters.
Returnarray
Allow third party code to filter list of "filtering query vars", as were retrieved by the plugin
Paramsarray $query List of query params.
YITH_WCAN_Query $this Query object.
Returnarray
By default plugin removes term from active filters list if we're on that term archive page.
This filter allows third party code to change this behaviour
Paramsbool $remove Whether to remove current term.
string $term_slug Current term.
mixed $qo Queried object.
string $taxonomy Taxonomy.
Returnbool
Allow third party code to filter list of active filters
Paramsarray $active_filter List of active filters.
array $query_vars List of supported query vars found in query string.
array $labels Lust of supported labels.
Returnarray
Allow third party code to filter list of labels for currently active filters
Paramsarray $active_filters List of active filters.
array $query_vars List of query vars found in query string.
Returnarray
Allow third party code to filter default parameters used to build filtered query
Params
array $query_args Default query arguments.
Returnarray
Filters flag used by the plugin to choose whether to apply filters to current query or not
Paramsbool $should_filter Whether plugin should apply filters.
YITH_WCAN_Query $this Query object.
Returnbool
Filters flag used by the plugin to choose whether to alter a specific query or not
Paramsbool $should_process Whether plugin should apply changes or not.
WP_Query $query Query being tested.
YITH_WCAN_Query $this Query object.
Returnbool
Filters list of query vars to add to the query
Params
array $query_vars List of query vars
Returnarray
Filter tax query parameters in the filtered query
Paramsarray $tax_query Tax query parameter.
YITH_WCAN_Query $this Current query.
Returnarray
Params
array $post_id List of product ids.
Returnarray
Params
bool $suppress Whether to remove existing query vars from the query.
Returnbool
Params
bool $suppress Whether to remove existing conditional tags from the query.
Returnbool
Params
bool $process Whether to process intersection.
Returnbool
Paramsstring $url Filter url.
array $query_vars List of url query vars.
string $merge_mode AND or OR.
Returnstring
Filters url used as base for filtering url
Params
string $base_url Filter url.
Returnstring
Filters flag used to determine if current view is filtered or not
Params
bool $filter Is current view filtered?
Returnbool
Params
bool $process Whether to process intersection.
Returnbool
Params
bool $process Whether to process intersection.
Returnbool
Params
array $args Query args.
Returnarray
Paramsarray|bool $result Optimized list.
array $tax_queries List to optimize.
Returnarray|bool
includes/class-yith-wcan-query-extended.php
Filters the list of query string parameters supported as "filtering query params"
Params
array $params Supported parameters.
Returnarray
Allow third party code to filter list of "filtering query vars", as were retrieved by the plugin
Paramsarray $query List of query params.
YITH_WCAN_Query $this Query object.
Returnarray
Filters flag used by the plugin to choose whether to apply filters to current query or not
Paramsbool $should_filter Whether plugin should apply filters.
YITH_WCAN_Query $this Query object.
Returnbool
Params
array $post_id List of product ids.
Returnarray
Params
bool $enabled Whether filter by session is enabled or not
Returnbool
Params
bool $enabled Whether filter by session is enabled or not
Returnbool
includes/class-yith-wcan-presets.php
Filters preset post type
Params
string $string Post type.
Returnstring
Filters number of terms to include when upgrading from old widget to new preset.
Default is 0, to include all
Params
int $limit Number of terms to include.
Returnint
includes/class-yith-wcan-preset.php
Filters default preset title
Params
string $title Default title.
Returnstring
Filters default preset slug
Params
string $slug Default slug.
Returnstring
List of classes added to preset HTML wrapper
Paramsarray $classes List of preset classes.
YITH_WCAN_Preset $this Preset object.
Returnarray
Filters the list of preset's filters
Params
array $filters Presets filters.
Returnarray
Paramsbool $can Whether user has required cap over current preset.
int $user_id Id of the user to test.
string $cap Capability to test.
YITH_WCAN_Preset $this Preset object.
Returnbool
Paramsbool $can Whether current user has required cap over current preset.
string $cap Capability to test.
YITH_WCAN_Preset $this Preset object.
Returnbool
includes/class-yith-wcan-preset-factory.php
Filters arguments of the query used to count presets
Params
array $args Default arguments.
Returnarray
Filters presets count
Paramsint $count Number of presets matching the query.
array $args Arguments of the query.
Returnint
Filters arguments of the query used to retrieve presets
Params
array $args Default arguments.
Returnarray
Filters presets set
Paramsarray $results Presets matching the query.
array $args Arguments of the query.
Returnarray
Filters presets list
Params
array $results Presets list.
Returnarray
Filters presets supported layouts
Params
array $layouts Supported layouts.
Returnarray
includes/class-yith-wcan-install.php
List of filters added to example preset
Params
array $filters Default filters.
Returnarray
Maximum number of terms added to filters in example preset
Params
int $terms_count Maximum number of terms.
Returnint
includes/class-yith-wcan-install-extended.php
Filters places bitmap used when registering rewrite endpoint
Params
int $places_bitmap Bitmap of endpoint "places".
Returnint
includes/class-yith-wcan-frontend.php
Whether plugin should use global query or current query
Params
bool $use_wp_the_query Whether to use global query.
Returnbool
Params
bool $is_search Whether to we're currently in the search page.
Returnbool
Whether to hide out of stock products
Params
bool $hide Whether to hide out of stock products.
Returnbool
Used to filter query args before retrieving products (legacy)
Params
array $args Array of query arguments.
Returnarray
Used to filter products ids matching filters selection (legacy)
Params
array $product_ids Array of product ids.
Returnarray
Whether to skip processing of layered nav attributes in query creation (legacy)
Params
array $skip Array of query arguments.
Returnarray
Used to filter list of product ids matching one of the attributes currently set in layered nav (legacy)
Paramsarray $post_ids Array of product ids.
array $args Query args.
array $attribute Current attribute.
string $value Attribute value.
Returnarray
Used to filter list of product ids matching one of the attributes currently set in layered nav (legacy)
Paramsarray $post_ids Array of product ids.
array $args Query args.
array $attribute Current attribute.
string $value Attribute value.
Returnarray
Params
string $class Body class to add.
Returnstring
Filters localized data from plugin's frontend script
Params
array $data Localized data.
Returnarray
Filters selectors used by plugin's script at frontend
Params
array $selectors Array of elements selectors.
Returnarray
Filters supports for vaoiurs third party themes
Params
array $theme_support Array of theme support flags.
Returnarray
Filters selector used by identify page content
Params
string $selector Content selector.
Returnstring
Filters how many items to show per page in the dropdown
Params
int $items_per_page Number of items per page.
Returnint
Filters currency format used by scripts at frontend
Params
array $currency_format Array describing currency format.
Returnint
Filters labels used at frontend by plugin's scripts
Params
array $labels Array of plugin's labels.
Returnarray
Parameters used to localize shortcodes script
Params
array $param Script params.
Returnarray
Filters the default color used in the color picker
Params
string $default_color Default value: '#A7144C'.
Returnstring
Filters custom css added by the plugin to the page
Params
string $custom_css Custom css.
Returnstring
Filters the base url used for filtering
Params
string $base_url Base filtering url.
Returnstring
List of hooks and priorities that represents various locations before the list of products
Params
array $locations Array of hooks and priorities.
Returnarray
includes/class-yith-wcan-frontend-extended.php
Filters list of parameters used for script localization
Params
array $script_args List of script parameters.
Returnarray
includes/class-yith-wcan-filter.php
Filters default parameters used for filter object initialization
Params
array $defaults Default filter data.
Returnarray
Filters bool representing whether current filter is active or not
Paramsbool $is_active Is filter active?
YITH_WCAN_Filter $this Filter object.
Returnbool
Filters bool representing whether current filter is relevant for current product selection or not
Paramsbool $is_relevant Is filter relevant?
YITH_WCAN_Filter $this Filter object.
Returnbool
Filters bool representing whether current filter should use custom term options or not
Paramsbool $customize_terms Should use custom terms options?
YITH_WCAN_Filter $this Filter object.
Returnbool
Filters list of additional classes for the filter
Paramsarray $classes List of additional classes
YITH_WCAN_Filter $this Filter object.
Returnarray
Filters list of classes used for items container
Paramsarray $classes List of classes
YITH_WCAN_Filter $this Filter object.
Returnarray
Filters data of current filter
Paramsarray $data Filter's data
YITH_WCAN_Filter $this Filter object.
Returnarray
Filters any property of the filter, when retrieved with "view" context.
$prop
is replaced with property name
Paramsmixed $value Property value.
YITH_WCAN_Filter $this Filter object.
Returnmixed
Filters tag used to render filter's title
Paramsstring $title_tag Title tag.
YITH_WCAN_Filter $this Filter object.
Returnstring
Filters list of classes for the filter title
Paramsarray $classes List of filter's title classes
YITH_WCAN_Filter $this Filter object.
Returnarray
Filters raw HTML for the filter title
Paramsstring $title_html Raw html for filter title.
string $title Filter title.
YITH_WCAN_Filter $this Filter object.
Returnarray
includes/class-yith-wcan-filter-factory.php
Filters name of the class this factory will use when creating object for current filter
Paramsstring $classname Class name for filter object.
string $filter_type Filter type.
array $fliter_data Filter data.
Returnstring
Filters list of supported filters type
Params
array $supported_types Filter types.
Returnarray
Filters list of supported filters designs
Params
array $supported_design Filter designs.
Returnarray
includes/class-yith-wcan-cron.php
Filters array of crons available for the plugin
Params
array $crons Array of existing crons.
Returnarray
includes/class-yith-wcan-cache-helper.php
Allow third party code to suppress cache handling
Params
bool $suppress_cache Default value: false.
Returnbool
Allow third party code to filter values stored in plugin's cache
Paramsmixed $value Cached value.
string $transient Name of the transient to access.
string $index Optional name of the index to access inside transient.
Returnmixed
Allow third party code to suppress cache handling
Params
bool $suppress_cache Default value: false.
Returnbool
Allow third party code to suppress cache handling
Params
bool $suppress_cache Default value: false.
Returnbool
Allow third party code to suppress cache handling
Params
bool $suppress_cache Default value: false.
Returnbool
Allow third party code to filter option name for builtin transients.
$transient
will be replaced with the id of the cache transient
Params
string $default_name Default transient name.
Returnstring
Allow third party code to filter duration for builtin transients.
$transient
will be replaced with the id of the cache transient
Params
int $transient_duration Default transient duration.
Returnint
Allow third party code to filter plugin's cached values
Params
array $transient_array Array of cached values.
Returnarray
includes/class-yith-wcan-admin.php
Capability needed to access admin panel
Params
string $panel_capability Default value: '#manage_woocommerce'.
Returnstring
Filters the array of admin tabs available in admin panel
Params
array $panel_tabs Default value.
Returnarray
Filters the default parameters used for admin panel initialization
Params
array $default_args Default value.
Returnarray
Filters the terms returned by the ajax search function
Paramsarray $result Array of results.
string $term Searched term.
string $taxonomy Taxonomy of the terms.
Returnstring
includes/tables/class-yith-wcan-filter-presets-table.php
Allow to filter the number of presets to show for each page
Params
int $count Number of items per page.
Returnint
includes/filters/class-yith-wcan-filter-tax.php
Filters bool representing whether current filter is active or not
Paramsbool $is_active Is filter active?
YITH_WCAN_Filter $this Filter object.
Returnbool
Filters bool representing whether current filter is relevant for current product selection or not
Paramsbool $is_relevant Is filter relevant?
YITH_WCAN_Filter $this Filter object.
Returnbool
Filters label shown when no term is selected for current filter
Params
string $label "All" terms label.
Returnstring
Filters term meta key where plugins searches for term image (attachment id)
Params
string $meta_key Image meta key.
Returnstring
Filters array with options set for a specific term in the filter
Paramsarray $term_options Array of term options.
int $term_id Id of current term.
YITH_WCAN_Filter $this Current filter.
Returnarray
Filters array with options set for a specific attribute in the filter
Paramsarray $term_options Array of term options.
int $term_id Id of current term.
YITH_WCAN_Filter $this Current filter.
Returnarray
Paramsarray $classes Array of additional classes.
YITH_WCAN_Filter $this Current filter.
Returnarray
Used to allow third party code to provide template for a custom design.
$design
will be replaced with the design name
Paramsstring $template Item template.
int|WP_Term $term_object Term object or id.
array $term_options Term params.
Returnstring
Filters count shown beside each term in the filter
Paramsint $count Term's posts count.
WP_Term $term Term object.
Returnint
Whether current filter has terms relevant to current product selection
Params
bool $has_relevant_terms Whether filter has relevant terms.
Returnbool
Limit applied when retrieving filter's terms.
0 used as default, to enforce no specific limit
Params
int $limit Term limit.
Returnint
Filters the array of formatted terms for a specific taxonomy
$taxonomy
will be replaced with taxonomy slug
Paramsarray $formatted_terms List of formatted terms.
YITH_WCAN_Filter $this Current filter.
Returnarray
Params
bool $process Whether to process intersection.
Returnbool
Allow to filter whether a specific term should be hidden
Paramsbool $hidden Whether term is hidden.
array $term_options Term options.
Returnbool
includes/data-stores/class-yith-wcan-session-data-store.php
Filter triggered immediately after creating a new session.
It allow to filter id of the session just created
Params
int $session_id Id of the brand new session.
Returnint
Params
int $ttl Default ttl: 7 days.
Returnint
includes/data-stores/class-yith-wcan-preset-data-store.php
Filters list of default post parameters used when crating a new preset post
Params
array $params Post parameters.
Returnarray
Filters the result set of presets query
Params
array $presets Result set.
Returnarray
Filters the slug => title list of existing presets
Params
array $presets List of existing presets.
Returnarray