• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WP Daily

WP Daily

Unlock the power of WordPress with expert code snippets and tips to enhance your website's functionality and design.

Show Search
Hide Search
  • Latest
  • Posts
    • General
    • Hooks
    • WooCommerce
    • Plugins
  • Contact Us
Home > Archives for WP Daily

WP Daily

How to use woocommerce_cart_item_removed hook

In WooCommerce, the woocommerce_cart_item_removed hook is a powerful tool that allows you to perform additional actions when a cart item is removed from the cart. This hook is triggered after a cart item is removed from the cart and can be used to perform various tasks such as logging, updating order totals, or sending notifications. In this article, we will […]

cart woocomerce woocommerce_cart_item_removed
A Programmer's Guide to Getting Order Info from the $order Object in WooCommerce

A Programmer’s Guide to Getting Order Info from the $order Object in WooCommerce

As a programmer, you may often find yourself working with the $order object in WooCommerce. This object contains information about the order, such as the customer’s name, the products ordered, and the shipping address. In this article, we’ll discuss how to get order info from the $order object, including different methods you can use to access specific pieces of information. […]

php woocomerce
WooCommerce Backend Order Creation Page

How to Add a Custom Field as a Searchable Field in the WooCommerce Backend Order Creation Page

By default, the “Add Product” modal in the WooCommerce backend order creation page allows searching for products by name and SKU. However, if you have a custom field for your products and would like to make it searchable as well, you can easily add this functionality using a custom code snippet. To add a custom field as a searchable field […]

php woocomerce
WooCommerce Product Post Statuses

How to Filter WooCommerce Product Search Results by Post Statuses

The woocommerce_search_products_post_statuses hook in WooCommerce allows you to filter the post statuses that are searched when performing a product search. This can be useful if you want to limit the search to specific post statuses, or if you want to include custom post statuses in the search. To use the woocommerce_search_products_post_statuses hook, you’ll need to add a filter to your […]

hooks php
WooCommerce Checkout Fields

How to Remove Checkout Fields in WooCommerce

WooCommerce provides a lot of flexibility when it comes to customizing the checkout process. By default, the checkout page includes a variety of fields, such as billing and shipping addresses, payment options, and order notes. However, not all of these fields may be necessary for your particular store, and they can actually create a cluttered and confusing checkout experience for […]

hooks php woocomerce
How to Reorder Checkout Fields in WooCommerce

How to Reorder Checkout Fields in WooCommerce

By, WooCommerce displays the billing and shipping fields in a specific order on the checkout page. However, you may want to customize the order in which these fields are displayed to suit your business needs better. Fortunately, WooCommerce provides a simple way to reorder checkout fields using the woocommerce_default_address_fields hook. Here’s how you can use this hook to reorder the […]

hooks php

Primary Sidebar

Popular Categories

  • Hooks
  • Plugins
  • WooCommerce
  • WordPress
  • Where to add this code snippet?
  • Hire us by the hour:
    Get Quote →
  • « Go to Previous Page
  • Go to page 1
  • Interim pages omitted …
  • Go to page 3
  • Go to page 4
  • Go to page 5
  • Go to page 6
  • Go to Next Page »

Footer

Thanks for reading!

Tutorials

  • Hooks
  • Plugins
  • WooCommerce
  • WordPress

Links

  • Where to add this code snippet?
  • Hire us by the hour:
    Get Quote →

Newsletter

©2023 WP Daily. All Rights Reserved.