Created
March 12, 2020 12:16
-
-
Save igorbenic/1c425ccc242e0ff2f37450ff0a48b3fa to your computer and use it in GitHub Desktop.
Simple Sponsorships - Code Snippets
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 | |
/** | |
* Remove Terms and Conditions Field | |
*/ | |
add_filter( 'ss_form_sponsors_fields', 'ss_remove_terms_and_conditions' ); | |
/** | |
* Filtering out the terms and conditions field | |
* | |
* @param array $fields Array of fields | |
* | |
* @return array | |
*/ | |
function ss_remove_terms_and_conditions( $fields ) { | |
unset( $fields['sponsor_terms'] ); | |
return $fields; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment