All of the following functions take an optional array
as their function argument, holding options equivalent to those that the Shortcodes allow. Please refer to documentation of the corresponding shortcode for details on the accepted attributes.
All functions return a string
which can be used to render the corresponding HTML in a PHP template.
woocommerce_product_search()
↑ Voltar Para o Topo
- Equivalvent widget : Product Search Field
- Equivalent shortcode: [woocommerce_product_search]
woocommerce_product_filter()
↑ Voltar Para o Topo- Equivalvent widget : Product Filter – Search
- Equivalent shortcode: [woocommerce_product_filter]
woocommerce_product_filter_products()
function which provides the target where the results of the live filter are displayed.
woocommerce_product_filter_context()
↑ Voltar Para o Topo- Equivalvent widget : does not apply
- Equivalent shortcode: [woocommerce_product_filter_context]
woocommerce_product_filter_products()
.
woocommerce_product_filter_products()
↑ Voltar Para o Topo- Equivalvent widget : Use a Content Block from Widgets Control that contains the equivalent shortcode.
- Equivalent shortcode: [woocommerce_product_filter_products]
woocommerce_product_search_filter_attribute()
↑ Voltar Para o Topo- Equivalvent widget : Product Filter – Attributes
- Equivalent shortcode: [woocommerce_product_filter_attribute]
woocommerce_product_filter_products()
function which provides the target where the results of the live filter are displayed or use it within the context of a shop page or product category page.
woocommerce_product_search_filter_category()
↑ Voltar Para o Topo- Equivalvent widget : Product Filter – Categories
- Equivalent shortcode: [woocommerce_product_filter_category]
woocommerce_product_filter_products()
function which provides the target where the results of the live filter are displayed.
woocommerce_product_search_filter_price()
↑ Voltar Para o Topo- Equivalvent widget: Product Filter – Price
- Equivalent shortcode: [woocommerce_product_filter_price]
woocommerce_product_filter_products()
function which provides the target where the results of the live filter are displayed.
woocommerce_product_search_filter_rating()
↑ Voltar Para o Topo- Equivalent widget: Product Filter – Rating
- Equivalent shortcode: [woocommerce_product_filter_rating]
woocommerce_product_filter_products()
function which provides the target where the results of the live filter are displayed or use it in a shop or product category page template.
woocommerce_product_search_filter_sale()
↑ Voltar Para o Topo- Equivalent widget: Product Filter – Sale
- Equivalent shortcode: [woocommerce_product_filter_sale]
woocommerce_product_filter_products()
function which provides the target where the results of the live filter are displayed.
woocommerce_product_search_filter_stock()
↑ Voltar Para o Topo- Equivalent widget: Product Filter – Stock
- Equivalent shortcode: [woocommerce_product_filter_stock]
woocommerce_product_filter_products()
function which provides the target where the results of the live filter are displayed.
woocommerce_product_search_filter_tag()
↑ Voltar Para o Topo- Equivalvent widget : Product Filter – Tags
- Equivalent shortcode: [woocommerce_product_filter_tag]
woocommerce_product_filter_products()
function which provides the target where the results of the live filter are displayed.
woocommerce_product_search_filter_reset()
↑ Voltar Para o Topo- Equivalent widget: Product Filter – Reset
- Equivalent shortcode: [woocommerce_product_filter_reset]
The following functions are used to determine whether the WooCommerce standard
[products]
shortcode should be filtered by the search engine or not.
woocommerce_product_search_filter_shortcode_products()
↑ Voltar Para o Topo[products]
shortcode.
Arguments:
- $atts array takes a single option indexed as ‘enable’; true enables filtering, disables otherwise
woocommerce_product_search_filter_shortcode_products_enable()
↑ Voltar Para o Topo[products]
shortcode.
woocommerce_product_search_filter_shortcode_products_disable()
↑ Voltar Para o Topo[products]
shortcode.