Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Turn Off User Activity Purchases By Default.
<?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