在编辑地址页面添加自定义字段 // add fields to edit address page function woo_add_edit_address_fields( $fields ) { $new_fields = array(...

在编辑地址页面添加自定义字段 // add fields to edit address page function woo_add_edit_address_fields( $fields ) { $new_fields = array(...
返回特色产品ID function woo_get_featured_product_ids() { // Load from cache $featured_product_ids = get_transient(...
从WooCommerce电子邮件名称解码 function woo_custom_wp_mail_from_name() { global $woocommerce; return html_entity_decode( get_option(...
更改发件人电子邮件地址 function woo_custom_wp_mail_from() { global $woocommerce; return html_entity_decode( 'your@email.com' ); }...
删除WooCommerce默认设置 add_filter( 'woocommerce_catalog_settings', 'woo_remove_catalog_options' ); function...
更改小工具标题 /* * Change widget title */ add_filter( 'widget_title', 'woo_widget_title', 10, 3); function woo_widget_title( $title,...
更换商店页面标题 add_filter( 'woocommerce_page_title', 'woo_shop_page_title'); function woo_shop_page_title( $page_title ) { if(...
重命名产品选项卡 add_filter( 'woocommerce_product_tabs', 'woo_rename_tab', 98); function woo_rename_tab($tabs) {...
设置结账字段必填 add_filter( 'woocommerce_checkout_fields', 'woo_filter_account_checkout_fields' ); function...
在类别视图中隐藏产品数量 add_filter( 'woocommerce_subcategory_count_html', 'woo_remove_category_products_count' ); function...
使用“产品已在购物车”替代“加入购物车”按钮 /** * Change the add to cart text on single product pages */ add_filter(...
用“sold”替换“Out of stock” add_filter('woocommerce_get_availability', 'availability_filter_func'); function...
近期评论