WooCommerce (category)
get_woocommerce_currencies() | Get full list of currency codes. |
get_woocommerce_currency() | Gets site currency code. For example: RUB. |
WC() | Main instance of WooCommerce. |
wc_body_class() | Add body classes for WC pages. |
wc_clean() | Cleans the passed data (variables) using sanitize_text_field(). Arrays are cleared recursively. |
wc_dropdown_variation_attribute_options() | Output a list of variation attributes for use in the cart forms. |
wc_format_phone_number() | Format phone numbers. |
wc_get_cart_url() | Gets the url to the cart page. |
wc_get_checkout_url() | Gets the url to the checkout page. |
wc_get_order() | Gets the data of the specified order in Woocommerce. This is a wrapper function to get the order object, through which you can get any data of the order and its elements. |
wc_get_product_id_by_sku() | Gets product ID by its SKU number. |
wc_get_weight() | Normalise weights, unify to kg then convert to wanted unit value. |
woocommerce_form_field() | Outputs a checkout/address form field. |
woocommerce_mini_cart() | Output the Mini-cart - used by cart widget. |
woocommerce_wp_text_input() | Output a text input box. |
WC Conditional Tags
is_cart() | Is_cart - Returns true when viewing the cart page. |
is_checkout() | Is_checkout - Returns true when viewing the checkout page. |
is_checkout_pay_page() | Is_checkout_pay - Returns true when viewing the checkout's pay page. |
is_product() | Is_product - Returns true when viewing a single product. |
is_product_tag() | Is_product_tag - Returns true when viewing a product tag. |
is_shop() | Is_shop - Returns true when viewing the product type archive (shop). |
is_woocommerce() | Is_woocommerce - Returns true if on a page which uses WooCommerce templates (cart and checkout are standard pages with shortcodes and thus are not included). |
wc_coupons_enabled() | Check if coupons are enabled. Filterable. |