开发者 | autocircle |
---|---|
更新时间 | 2023年4月10日 17:06 |
捐献地址: | 去捐款 |
PHP版本: | 5.3 及以上 |
WordPress版本: | 6.1.1 |
版权: | GPLv3 or later |
版权网址: | 版权信息 |
Yes! You really don't need anything for this plugin.
Yes!
You can paste this code to your current theme's functions.php:
add_filter( 'wcptp_price_html', 'wcptp_price_html' ); function wcptp_price_html( $wcptp_price_html ) { return str_replace( 'Total Price', 'Order Total', $wcptp_price_html ); }
This is an example that will change "Total Price" to "Order Total".
Yes allmost with all plugins and themes.
Yes, that could be easily done by adding following code snippet to your theme's function.php file.
add_filter( 'wcptp_allowed_product_type', function( $types ){ $types[] = 'woosb'; return $types; }, 10 );
The above code snippet will allow you to show the Total Product Price for almost any types of products.
= How to show prefix and suffix text of Total Price?
To show text as prefix and suffix of total price there are 02 filters. Use these filters to display your desired text.
`
apply_filters( 'wcptp_prefix', __return_false() );
apply_filters( 'wcptp_suffix', __return_false() );
<strong>Example:</strong>
add_filter( 'wcptp_suffix', function(){
return "(excl. VAT)";
});
`