Created
August 27, 2020 18:34
-
-
Save ronalfy/58f906815ac8573c1b4ab5164124c78a to your computer and use it in GitHub Desktop.
Paid Memberships Pro - Make Reason Cancelled Optional
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 | |
/** | |
* 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