Skip to content

Instantly share code, notes, and snippets.

@ckpicker
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ckpicker/8aa1390da48520f88149 to your computer and use it in GitHub Desktop.
Save ckpicker/8aa1390da48520f88149 to your computer and use it in GitHub Desktop.
Community Events 3.6 // Customize 'Event Submitted' text
add_filter('tribe_community_events_form_errors', 'customize_thank_you_message', 10, 2);
function customize_thank_you_message( $messages ) {
if ( is_array( $messages ) ) {
foreach ( $messages as $key => $message ) {
if( $message['type'] === 'update' ) {
$messages[$key]['message'] = 'Thanks for submitting your event! You can add other helpful information or HTML here also.';
}
}
}
return $messages;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment