定制 ziorwebdev/wordpress-blocks 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

ziorwebdev/wordpress-blocks

Composer 安装命令:

composer require ziorwebdev/wordpress-blocks

包简介

A collection of custom Gutenberg blocks designed to extend the WordPress block editor with icons, dynamic data, and flexible content composition.

README 文档

README

A collection of custom Gutenberg blocks designed to extend the WordPress block editor with icons, dynamic data, and flexible content composition.

This project focuses on reusable and composable blocks that integrate naturally with the WordPress editor while remaining developer-friendly.

Included Blocks

Icon Picker Block

A utility block that allows users to select and insert icons directly into the editor.

Features

  • Supports Dashicons (WordPress core icons)
  • Supports social icons
  • Can be reused inside other blocks
  • Outputs editor-safe markup compatible with both editor and frontend

Use cases

  • Buttons
  • Feature lists
  • Callouts
  • Social links

Icon List Block

A flexible list block powered by the Icon Picker.

Features

  • Add, remove, and reorder list items

  • Each list item includes:

    • An Icon Picker
    • A fully insertable inner block
      • Paragraph
      • Heading
      • Meta Field
      • Any other allowed block
  • Built using InnerBlocks for maximum flexibility

Use cases

  • Feature lists
  • Services lists
  • Benefits sections
  • Custom content lists with icons

Meta Field Block

A dynamic block that allows users to insert values from WordPress data sources directly into the editor.

Features

  • Insert values from:

    • Options table
    • Post meta table
  • Dynamic rendering

  • Supports return format templates using placeholder tokens

  • Works in both editor preview and frontend output

Use cases

  • Display custom fields
  • Output site options such as address or contact information
  • Build dynamic layouts without writing PHP templates

WooCommerce Product Add To Cart Block

A customizable block that allows users to insert a WooCommerce Add to Cart button directly into the editor, with support for dynamic product data and flexible quantity handling.

Features

  • Add to cart for:
    • Specific products by ID
    • Current product context (when used on single product templates)
  • Optional quantity selector support
  • Dynamic data attributes for frontend handling
  • Works seamlessly in both editor preview and frontend output
  • Compatible with WooCommerce templates and block-based themes

Use cases

  • Custom product landing pages
  • Sales and promotional sections
  • Product comparison layouts
  • Block-based WooCommerce product templates

WooCommerce Product Price Block

A dynamic block that renders the WooCommerce product price using native WooCommerce pricing logic.

This block ensures compatibility with simple, variable, and subscription-based products while preserving WooCommerce formatting.

Features

  • Displays price for:
    • Specific product by ID
    • Current product context (when used on single product templates)
  • Dynamic rendering using WooCommerce get_price_html() / price_html
  • Supports:
    • Simple products
    • Variable products (price ranges)
    • Sale pricing
    • Subscription pricing (if WooCommerce Subscriptions is active)
  • Editor preview reflects real product pricing
  • Preserves WooCommerce markup and CSS compatibility
  • Works in Full Site Editing (FSE) templates

Use cases

  • Custom single product templates
  • Product landing pages
  • Pricing tables
  • Subscription comparison layouts
  • Custom WooCommerce layouts without overriding PHP templates

WooCommerce Product Rating Block

A dynamic block that displays the WooCommerce product star rating with full frontend compatibility.

The block outputs WooCommerce’s native rating HTML to keep styling and structured data consistent.

Features

  • Displays rating for:
    • Specific product by ID
    • Current product context
  • Uses WooCommerce rating HTML output (star markup + accessible text)
  • Supports:
    • Star rating visualization
    • Rating count
    • Average rating
  • Editor preview displays real rating data
  • Compatible with WooCommerce CSS and structured data
  • Works in block-based product templates

Use cases

  • Custom single product templates
  • Product grids and listing layouts
  • Landing pages
  • Product comparison sections
  • Highlighting social proof in sales pages

Installation

Via Composer

composer require ziorwebdev/wordpress-blocks

After installation, the blocks will be available in your project.

License

GPL-2.0-or-later

Author

ZIORWeb.Dev https://github.com/ziorwebdev

ziorwebdev/wordpress-blocks 适用场景与选型建议

ziorwebdev/wordpress-blocks 是一款 基于 TypeScript 开发的 Composer 扩展包,目前已累计 143 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 11 月 24 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 ziorwebdev/wordpress-blocks 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 ziorwebdev/wordpress-blocks 我们能提供哪些服务?
定制开发 / 二次开发

基于 ziorwebdev/wordpress-blocks 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: TypeScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-24