-
WordPress Contact form 7 设置文件上传
前提已经安装启动Contact Form 7。 先看一下各功能。 file :设置上传文件用的一般比较少。 1.点击file,设置好对应的Name,File size limit (bytes),Acceptable file types ,这三个填一下就好了。 Name:标签名 File size limit (bytes):上传文件的大小(一定要设置,防止恶意上传大文件) 这里是使用mb: 1…...- 小朱笔记
- 0
- 0
- 2.9k
-
WordPress教程:WooCommerce替换默认产品占位符图片
替换默认产品占位符图片 /* * goes in theme functions.php or a custom plugin. Replace the image filename/path with your own ? * **/ add_action( 'init', 'custom_fix_thumbnail' ); function custom…...- 小朱笔记
- 0
- 0
- 1.3k
-
WordPress教程:WooCommerce当使用优惠券完成新订单时,发送电子邮件
当使用优惠券完成新订单时,发送电子邮件 /** * WooCommerce Extra Feature * -------------------------- * * Send an email each time an order with coupon(s) is completed * The email contains coupon(s) used during checkout pr…...- 小朱笔记
- 0
- 0
- 1.3k
-
WordPress教程:将付款类型添加到WooCommerce管理电子邮件
将付款类型添加到WooCommerce管理电子邮件 add_action( 'woocommerce_email_after_order_table', 'add_payment_method_to_admin_new_order', 15, 2 ); function add_payment_method_to_admin_new_order( $orde…...- 小朱笔记
- 0
- 0
- 1k
-
WordPress教程:WooCommerce有促销商品
有促销商品 function woo_have_onsale_products() { global $woocommerce; https:// Get products on sale $product_ids_on_sale = array_filter( woocommerce_get_product_ids_on_sale() ); if( !empty( $product_ids_on…...- 小朱笔记
- 0
- 0
- 1.1k
-
WordPress教程:WooCommerce设置CC所有电子邮件
CC所有电子邮件 /** * WooCommerce Extra Feature * -------------------------- * * Add another email recipient to all WooCommerce emails * */ function woo_cc_all_emails() { return 'Bcc: youremail@yourdoma…...- 小朱笔记
- 0
- 0
- 1.1k
-
WordPress教程:WooCommerce更改发件人电子邮件地址
更改发件人电子邮件地址 function woo_custom_wp_mail_from() { global $woocommerce; return html_entity_decode( 'your@email.com' ); } add_filter( 'wp_mail_from', 'woo_custom_wp_mail_from…...- 小朱笔记
- 0
- 0
- 1.4k
-
WordPress教程:删除WooCommerce默认设置
删除WooCommerce默认设置 add_filter( 'woocommerce_catalog_settings', 'woo_remove_catalog_options' ); function woo_remove_catalog_options( $catalog ) { unset($catalog[23]); https://Trim ze…...- 小朱笔记
- 0
- 0
- 1.4k
-
Contact Form 7 表单提交跳转页面
Contact Form 7 表单提交后做跳转以前是在Additional Settings这个输入框,插入一下代码就可以实现提交后跳转。 on_sent_ok: "location = 'http://yourdomain.com/';" 现在已经不行了。on_sent_ok已在Contact Form 7(5.0版)中弃用。官方也给出的通知。 为什么on…...- 小朱笔记
- 0
- 0
- 3.1k
-
WordPress教程:WooCommerce电子邮件名称解码
从WooCommerce电子邮件名称解码 function woo_custom_wp_mail_from_name() { global $woocommerce; return html_entity_decode( get_option( 'woocommerce_email_from_name' ) ); } add_filter( 'wp_mail_from…...- 小朱笔记
- 0
- 0
- 990