Last active
March 8, 2016 11:50
-
-
Save wpweb101/0efa54b7fc10a1416ad5 to your computer and use it in GitHub Desktop.
Disable Auto Enable Variations As Downloadable
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 | |
| function disable_auto_enable_variations_download( $auto_enable ) { | |
| $auto_enable = false; | |
| return $auto_enable; | |
| } | |
| add_filter( 'woo_vou_auto_enable_downloadable_variations', 'disable_auto_enable_variations_download' ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment