WooCommerce (category)
| get_woocommerce_currencies() | Gets the complete list of WooCommerce currencies. The list is returned as an array: |
| get_woocommerce_currency() | Gets site currency code. For example: RUB. |
| WC() | Returns the main instance of the WooCommerce class. The function is created to prevent the need to access global variables. The WooCommerce class is created based on the |
| wc_body_class() | Adds WooCommerce classes related to the current page to the |
| 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() | Formats the phone number by replacing the character |
| wc_get_cart_url() | Returns a link to the Cart page. |
| wc_get_checkout_url() | Returns a link 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() | Converts weight from kilograms to any other unit of measurement and vice versa. |
| woocommerce_form_field() | Used to create form fields on the checkout and shipping and payment address edit pages. |
| woocommerce_mini_cart() | Displays the mini-cart on the screen. |
| woocommerce_wp_text_input() | Outputs a text field. |
WC Conditional Tags
| is_cart() | Checks if the current page is the cart page. Conditional tag. |
| is_checkout() | Checks if the current page is the checkout page. Conditional tag. |
| is_checkout_pay_page() | Checks if the current page is the order payment page. Conditional tag. |
| is_product() | Checks if the current page is a product page. Conditional tag. |
| is_product_tag() | Checks if the current page is a product tag page. Conditional tag. |
| is_shop() | Checks if the current page is the main shop page. Conditional tag. |
| is_woocommerce() | Checks if the displayed page uses the WooCommerce template. |
| wc_coupons_enabled() | Checks if coupons are enabled. Checks the option |