Created
January 21, 2019 17:24
-
-
Save CrispDev/be1812b56f49a6437676f1678e2708fd to your computer and use it in GitHub Desktop.
Default Autoship by default instead of one-time purchase
This file contains 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
// Default the Autoship option for both Simple and | |
// Variable products by default. | |
function xx_default_autoship_for_all( $default ){ | |
return 'yes'; | |
} | |
add_filter('autoship_default_product_schedule_options_choice_value', 'xx_default_autoship_for_all', 10 ,1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Important Notes: