woocommerce 修改默认的添加购物车的按钮的文字
add_filter( 'woocommerce_product_add_to_cart_text', 'woo_archive_custom_cart_button_text' ); // 2.1 +
function woo_archive_custom_cart_button_text() {
return __( '添加购物车', 'woocommerce' );
}
2.解决wordpress访问,请求一直404
修改apache配置文件
<Directory "/var/www/html">
Options Indexes FollowSymLinks
//将AllowOverride None改为all
AllowOverride all
Require all granted
</Directory>
从新启动apache就OK了