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
    
  
  
    
  | #!/bin/bash | |
| ############################################################################### | |
| # Script: reset-stock-sql.sh | |
| # | |
| # Description: | |
| # Sets all WooCommerce product and variation stock quantities to 0 | |
| # and marks stock status as 'outofstock', using direct SQL. | |
| # Works in both single-site and multisite WordPress installations. | |
| # | 
  
    
      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 | |
| /** | |
| * Plugin Name: WooCommerce Variation Availability Schema | |
| * Description: Extends Yoast SEO schema for WooCommerce product variations, adding stock status. | |
| * Version: 0.1 | |
| * Author: Thomas Audunhus | |
| */ | |
| // Prevent direct access to the script |