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 | |
| /** | |
| * Variations Pull From Product Inventory | |
| * | |
| * @wordpress-plugin | |
| * Plugin Name: Variations Pull From Product Inventory | |
| * Description: A WooCommerce plugin to allow variations to pull from another product's inventory. | |
| * Version: 1.3.0 | |
| * Requires at least: 5.2 | |
| * Requires PHP: 7.2 |
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 | |
| /** | |
| * Limit Product Visibility | |
| * @wordpress-plugin | |
| * Plugin Name: Limit Product Visibility | |
| * Description: A WooCommerce plugin to limit product visibility to administrators and a user role called Reps. | |
| * Version: 1.0.0 | |
| * Requires at least: 5.2 | |
| * Requires PHP: 7.2 | |
| * Author: Jesse Conner |
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
| var boxes = jQuery(this).find(':checkbox').toArray(); | |
| var values = {}; | |
| boxes.forEach(t => { | |
| values[t.id] = t.checked; | |
| }); |
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
| function sleep(ms) { | |
| return new Promise((resolve) => { | |
| setTimeout(resolve, ms); | |
| }); | |
| } | |
| //Wait for one second. | |
| await sleep(1000); |
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
| //This filter is called when creating the recurring shipping text for a WooCommerce subscription | |
| add_filter("wcs_cart_totals_shipping_html_price_only", "rt_always_show_shipping"); | |
| function rt_always_show_shipping(){ | |
| return false; | |
| } |