• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Damien Carbery - Website Development

Getting You Online & Keeping You There

Getting You Online & Keeping You There Get Started
  • Home
  • Services
  • Maintenance Plans
  • Portfolio
  • Blog
  • About Me
  • Contact
You are here: Home / Website Development / Show shipping class IDs in WooCommerce

Show shipping class IDs in WooCommerce

Published: December 5, 2022

Show shipping class IDs in WooCommerce
List shipping classes and their IDs for use in custom code.

Similar to my post to show shipping method IDs, showing the shipping class IDs is needed for some BusinessBloomer.com posts e.g. Hide Shipping By Shipping Class. Finding the shipping class is messy so, like for shipping method IDs, the code below reveals shipping class IDs for easy reference.

Retrieving all shipping classes

Shipping classes are stored as a taxonomy called ‘product_shipping_class‘ so retrieving information about them is via a call to get_terms().

The rest of the code is almost identical to the show shipping method IDs code.

The code

Related Posts

Show shipping method IDs in WooCommerce

List shipping zones, shipping methods and their IDs for use in custom code.

Add Shipping Classes column to Products admin page

Add a new column to the WooCommerce Products admin page.

Defer WooCommerce emails for a few minutes

Defer WooCommerce emails for a specified time after the normal delivery time.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Blog Categories

  • Being Green
  • Food
  • Grammar
  • Just Strange
  • Laziness
  • Personal
  • Portfolio
  • Race Reports
  • Shudder
  • Typo
  • Website Development
  • WooCommerce Tips
  • Facebook
  • Twitter

Copyright © 2013–2023 Damien Carbery · Using Genesis Framework · Privacy Policy