Created
May 20, 2019 05:37
-
-
Save KaineLabs/42b90cc208a2097edc4c4ae355f81ec9 to your computer and use it in GitHub Desktop.
Turn Off User Activity Purchases By Default.
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
<?php | |
/** | |
* Set User Activity Purchases By Default to "Off" | |
**/ | |
function yzc_set_activity_purchases_off_by_default() { | |
return 'off'; | |
} | |
add_action( 'yz_wc_purchase_activity', 'yzc_set_activity_purchases_off_by_default' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment