Skip to content

Instantly share code, notes, and snippets.

@woogist
Created June 16, 2015 08:27
Show Gist options
  • Save woogist/dec98de911b7c92a3dd0 to your computer and use it in GitHub Desktop.
Save woogist/dec98de911b7c92a3dd0 to your computer and use it in GitHub Desktop.
add_action( 'woocommerce_subscriptions_renewal_order_created', 'wc_subs_custom_mark_free_renewals_processing' );
function wc_subs_custom_mark_free_renewals_processing( $renewal ) {
if ( ! $renewal->get_total() ) {
$renewal->update_status( 'processing' );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment