woocommerce: change default setting > is_sold_individualy function

You can use a built-in function from WordPress:

add_filter( 'woocommerce_is_sold_individually', '__return_true' );

This line in a separate plugin will set the value always to true.

error code: 523