Skip to content

Commit 03c8e4e

Browse files
authored
Remove WooCommerce default settings Add
1 parent d62d51d commit 03c8e4e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"generator":"Code Snippets v2.13.3","date_created":"2019-03-29 15:46","snippets":[{"name":"Remove WooCommerce default settings","tags":["remove","woocommerce","default","settings"],"scope":"front-end","code":"add_filter( 'woocommerce_catalog_settings', 'woo_remove_catalog_options' );\n\nfunction woo_remove_catalog_options( $catalog ) {\n\n\tunset($catalog[23]); \/\/Trim zeros (no) \n\tunset($catalog[22]); \/\/2 decimals \n\tunset($catalog[21]); \/\/decimal sep (.) \n\tunset($catalog[20]); \/\/thousand sep (,) \n\tunset($catalog[19]); \/\/currency position (left)\t\n\tunset($catalog[18]); \/\/currency position (left)\t\n\tunset($catalog[5]); \/\/ ajax add to cart (no)\t\n\t\n\treturn $catalog; \n}","priority":"10"}]}

0 commit comments

Comments
 (0)