Last active
August 12, 2024 04:40
-
-
Save adrianduffell/8792c104401aaf2aa4fd7c43986d5e54 to your computer and use it in GitHub Desktop.
Disable WooCommerce coming soon mode
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: Disable WooCommerce coming soon mode | |
* Author: Adrian Duffell | |
* Description: Automatically disables coming soon mode in WooCommerce. | |
* Version: 1.0.0 | |
*/ | |
add_filter('pre_option_woocommerce_coming_soon', 'opt_out_woocommerce_coming_soon'); | |
function opt_out_woocommerce_coming_soon() { | |
return 'no'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment