Uses
Uses | Description |
---|---|
wp-includes/functions.wp-scripts.php: wp_enqueue_script() | Enqueue a script. |
wp-includes/user.php: get_user_option() | Retrieve user option that can be either per Site or per Network. |
File: wp-admin/includes/comment.php
function enqueue_comment_hotkeys_js() { if ( 'true' === get_user_option( 'comment_shortcuts' ) ) { wp_enqueue_script( 'jquery-table-hotkeys' ); } }
Version | Description |
---|---|
2.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/enqueue_comment_hotkeys_js