xwoo/data-type-admin 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

xwoo/data-type-admin

最新稳定版本:v1.0.3

Composer 安装命令:

composer require xwoo/data-type-admin

包简介

README 文档

README

WC Data Type Admin

Admin list-page utilities for WooCommerce data types

Packagist Version Packagist PHP Version Static Badge Static Badge

This library provides admin list-page and list-table utilities for custom WooCommerce data types defined with x-wp/wc-data-type. Define a data type once, then get a consistent admin listing experience with minimal boilerplate.

Key Features

  1. List page handling: Register admin pages for custom data types with List_Page_Handler.
  2. WooCommerce-style list tables: Extend List_Table for a familiar WP_List_Table workflow tuned for WooCommerce objects.
  3. Shared mixins: Reusable list-table behaviors via src/Mixins/*.
  4. Legacy compatibility: Wrappers (XWC_Data_List_Page, XWC_Data_List_Table) keep existing consumers working.
  5. WordPress-native integration: Designed for plugin code already built around WordPress and WooCommerce lifecycles.

Installation

You can install this package via Composer:

composer require x-wp/wc-data-type-admin

Tip

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

Package Structure

  • src/List_Page_Handler.php: admin page handler with DI-based table resolution
  • src/List_Table.php: base table implementation shared by legacy and new flows
  • src/Mixins/*: shared list-table behaviors
  • src/Core/*: legacy compatibility wrappers
  • templates/html-admin-page-edsl.php: shared admin page template

Testing

Regression checks:

php tests/regressions.php

Static analysis:

php -d memory_limit=1G vendor/bin/phpstan analyse --debug

Note

The regression script is intentionally lightweight and does not require a full WordPress test bootstrap. PHPStan is configured conservatively for this library; in constrained environments, --debug is the verified non-parallel invocation path.

Documentation

For package-specific usage, start with the public entrypoints:

  • XWC\Data\Admin\List_Page_Handler
  • XWC\Data\Admin\List_Table
  • XWC_Data_List_Page (legacy)
  • XWC_Data_List_Table (legacy)

Additional project information is available in the repository.

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2024-04-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固