PHPackages                             x-wp/wc-data-attribute-tax - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. x-wp/wc-data-attribute-tax

ActiveLibrary

x-wp/wc-data-attribute-tax
==========================

WooCommerce attribute taxonomy data objects

v1.0.1(1mo ago)03↓100%[1 issues](https://github.com/x-wp/wc-data-type-attribute-tax/issues)MITPHPPHP &gt;=8.1CI passing

Since Apr 6Pushed 1mo agoCompare

[ Source](https://github.com/x-wp/wc-data-type-attribute-tax)[ Packagist](https://packagist.org/packages/x-wp/wc-data-attribute-tax)[ GitHub Sponsors](https://github.com/seebeen)[ RSS](/packages/x-wp-wc-data-attribute-tax/feed)WikiDiscussions beta Synced 1mo ago

READMEChangelog (3)Dependencies (13)Versions (5)Used By (0)

WC Data Attribute Tax
=====================

[](#wc-data-attribute-tax)

### WooCommerce attribute taxonomy data objects

[](#woocommerce-attribute-taxonomy-data-objects)

[![Packagist Version](https://camo.githubusercontent.com/56122130c07d62e62ee4ca6cdc2d943ae370d7ba2e63b53b032af18ff69f8234/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f782d77702f77632d646174612d6174747269627574652d7461783f6c6162656c3d52656c65617365267374796c653d666c61742d737175617265)](https://packagist.org/packages/x-wp/wc-data-attribute-tax)[![Packagist PHP Version](https://camo.githubusercontent.com/79fbffcc943df3dec6893888209274aee7d052314fbdc9355dac9f2fa6567f26/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f782d77702f77632d646174612d6174747269627574652d7461782f7068703f6c6162656c3d504850266c6f676f3d706870266c6f676f436f6c6f723d7768697465266c6f676f53697a653d6175746f267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/79fbffcc943df3dec6893888209274aee7d052314fbdc9355dac9f2fa6567f26/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f782d77702f77632d646174612d6174747269627574652d7461782f7068703f6c6162656c3d504850266c6f676f3d706870266c6f676f436f6c6f723d7768697465266c6f676f53697a653d6175746f267374796c653d666c61742d737175617265)[![Static Badge](https://camo.githubusercontent.com/701a971987ae616f397166ce1976d64ae8e6d76ef36400d34f881cbcbb094b25/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f57502d253345253344362e352d3338353865393f7374796c653d666c61742d737175617265266c6f676f3d776f72647072657373266c6f676f53697a653d6175746f)](https://camo.githubusercontent.com/701a971987ae616f397166ce1976d64ae8e6d76ef36400d34f881cbcbb094b25/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f57502d253345253344362e352d3338353865393f7374796c653d666c61742d737175617265266c6f676f3d776f72647072657373266c6f676f53697a653d6175746f)[![Static Badge](https://camo.githubusercontent.com/f7df83e3c5d0ac68116452b5ed359a89880698e3bb9f3d5001084e4676bf5347/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f57432d253345253344392e302d3766353462333f7374796c653d666c61742d737175617265266c6f676f3d776f6f636f6d6d65726365266c6f676f53697a653d6175746f)](https://camo.githubusercontent.com/f7df83e3c5d0ac68116452b5ed359a89880698e3bb9f3d5001084e4676bf5347/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f57432d253345253344392e302d3766353462333f7374796c653d666c61742d737175617265266c6f676f3d776f6f636f6d6d65726365266c6f676f53697a653d6175746f)[![GitHub Actions Workflow Status](https://camo.githubusercontent.com/fda03da08b48a4bb35518893c0e6b4dc0f7b5fdeb207088b16980067cdb90150/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f782d77702f77632d646174612d747970652d6174747269627574652d7461782f74657374732e796d6c3f6c6162656c3d5465737473266576656e743d70757368267374796c653d666c61742d737175617265266c6f676f3d676974687562616374696f6e73266c6f676f436f6c6f723d7768697465266c6f676f53697a653d6175746f)](https://github.com/x-wp/wc-data-attribute-tax/actions/workflows/tests.yml)[![codecov](https://camo.githubusercontent.com/be438376567afde39ca4f5e735ab5560a3429f70872b95483ea9a6ff1db2098a/68747470733a2f2f636f6465636f762e696f2f67682f782d77702f77632d646174612d747970652d6174747269627574652d7461782f67726170682f62616467652e7376673f746f6b656e3d5953314f4d554f515757)](https://codecov.io/gh/x-wp/wc-data-type-attribute-tax)

This package provides `XWC_Attribute_Tax` data objects for working with WooCommerce product attribute taxonomies. Built on the [`x-wp/wc-data-type`](https://github.com/x-wp/wc-data-type) framework, it wraps WooCommerce's `wc_*_attribute()` functions in a model-driven CRUD workflow with typed properties, a dedicated factory, and convenience helpers.

Installation
------------

[](#installation)

```
composer require x-wp/wc-data-attribute-tax
```

Tip

We recommend using `automattic/jetpack-autoloader` with this package to reduce autoloading conflicts in WordPress environments.

Usage
-----

[](#usage)

### Loading an attribute

[](#loading-an-attribute)

```
