Last active
May 12, 2025 12:16
-
-
Save yuriinalivaiko/220febbfb39509960586a6b75d034ad1 to your computer and use it in GitHub Desktop.
This code disables sending a private message when the user presses the ENTER key.
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
| // Don't send private messages on the "Enter" keypress. | |
| jQuery(document).ready(function() { | |
| jQuery( document.body ).off( 'keypress', 'textarea.um_message_text' ); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This gist is a part of the article Send private message on ENTER
Documentation: https://docs.ultimatemember.com/
Support forum: https://wordpress.org/support/plugin/ultimate-member/