Skip to content

Instantly share code, notes, and snippets.

@ronalfy
Created August 27, 2020 18:34
Show Gist options
  • Save ronalfy/58f906815ac8573c1b4ab5164124c78a to your computer and use it in GitHub Desktop.
Save ronalfy/58f906815ac8573c1b4ab5164124c78a to your computer and use it in GitHub Desktop.
Paid Memberships Pro - Make Reason Cancelled Optional
<?php
/**
* Makes reason for cancelling text field optional.
*/
function pmpro_custom_remove_required_cancel() {
remove_action( 'init', 'pmpror4c_init' );
}
add_action( 'init', 'pmpro_custom_remove_required_cancel', 9 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment