Closed. This question is off-topic. It is not currently accepting answers.admin管理员组文章数量:1122846
Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 6 months ago.
Improve this questionI would like to change the wording of an error message I see in WooCommerce.
Are there any filters I can use to do this?
Closed. This question is off-topic. It is not currently accepting answers.Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 6 months ago.
Improve this questionI would like to change the wording of an error message I see in WooCommerce.
Are there any filters I can use to do this?
Share Improve this question asked Oct 7, 2013 at 13:21 BFTrickBFTrick 9414 gold badges10 silver badges22 bronze badges1 Answer
Reset to default 8You can do this with the woocommerce_add_error
filter. Add the following to your functions.php file.
// alter the subscriptions error
function my_woocommerce_add_error( $error ) {
if( 'The generic error message' == $error ) {
$error = 'The shiny brand new error message';
}
return $error;
}
add_filter( 'woocommerce_add_error', 'my_woocommerce_add_error' );
本文标签: filtersCustomize WooCommerce Error Message
版权声明:本文标题:filters - Customize WooCommerce Error Message 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736302946a1931714.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论