Created
September 24, 2025 14:38
-
-
Save plugin-republic/5c522858370ac34c9be9b627a96dbd40 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Remove quantity field from all single product pages | |
| */ | |
| function pr_is_sold_individually_all_products( $individually, $product ) { | |
| return $individually; | |
| } | |
| add_filter( 'woocommerce_is_sold_individually', 'pr_is_sold_individually_all_products', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment