mindkomm/woocommerce-email-text-edit 问题修复 & 功能扩展

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

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

mindkomm/woocommerce-email-text-edit

Composer 安装命令:

composer require mindkomm/woocommerce-email-text-edit

包简介

Modify email texts used in your WooCommerce emails without having to edit email templates.

README 文档

README

This plugin allows you to edit email texts that are used in WooCommerce customer emails without having to edit the default templates that WooCommerce uses for emails.

Unlike other plugins, it will not overwrite your existing email template files.

Installation

You can install the package with Composer:

composer require mindkomm/woocommerce-email-text-edit

Usage

After you’ve installed the plugin, go to WooCommerceSettingsEmails and select a customer email that you want to edit. You’ll find two new edit field where you can edit the content and the footer content of the email.

The following custom emails are supported:

  • Completed Order
  • Customer Invoice
  • Customer Note
  • Order on-hold
  • Processing order
  • Refunded order

Additionally, if you use the WooCommerce Subscriptions plugin, the following email types are supported as well:

  • Completed Renewal Order
  • Subscription Switch Complete
  • Customer Payment Retry
  • Processing Renewal Order
  • Customer Renewal Invoice

If you want to test how your emails will look without having to create and send a lot of orders, you can use the very handy WooCommerce Email Test plugin.

Technical details

This plugin won’t overwrite any email templates that you’ve already defined. It will instead hook into the woocommerce_email_header action with a priority of 999 and start an output buffer. The output buffer will then be released in a function hooked to woocommerce_email_order_details with a priority of 1. All output that was echoed between these two hooks will be suppressed.

It will do the same for the content in the footer. There, it will hook into the woocommerce_email_customer_details and woocommerce_email_footer actions.

Because of this setup, this plugin might not work if you have already heavily customized your emails with custom templates.

Filters

See the Filters documentation.

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-05-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固