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
/* Remember to set your list of blocked words in WordPress > Settings > Discussion > Disallowed Comment Keys */ | |
/* Gravity Forms Blocked Words */ | |
add_filter( 'gform_validation', 'validate_disallowed_keys' ); | |
function validate_disallowed_keys( $validation_result ) { | |
$form = $validation_result['form']; | |
$blacklist_keys = get_option( 'blacklist_keys' ); |
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
// Add ChatGPT Menu | |
const onOpen = () => { | |
const ui = SpreadsheetApp.getUi(); | |
ui.createMenu("ChatGPT") | |
.addItem("💾 Save Responses as Text", "saveAsText") | |
.addItem("ChatGPT API Sheet by Sarah Tamsin 💜", "openUrl") | |
.addToUi(); | |
}; |