enqueue_comment_hotkeys_js() WordPress Function
This function enqueues the comment hotkeys JavaScript file. This is only done if the user is logged in and if the comment_form() function has been called. This function allows for easier commenting on Wordpress websites. It adds hotkeys so that the user can submit a comment without having to use the mouse. This can be useful for users who prefer to use the keyboard or who have mobility impairments.
enqueue_comment_hotkeys_js() #
Source
File: wp-admin/includes/comment.php
function enqueue_comment_hotkeys_js() { if ( 'true' === get_user_option( 'comment_shortcuts' ) ) { wp_enqueue_script( 'jquery-table-hotkeys' ); } }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |