enqueue_comment_hotkeys_js

The WordPress Core enqueue comment hotkeys js function.

Description

enqueue_comment_hotkeys_js(); 

Usage

  1. if ( !function_exists( 'enqueue_comment_hotkeys_js' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/comment.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = enqueue_comment_hotkeys_js(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/comment.php  
  1. function enqueue_comment_hotkeys_js() { 
  2. if ( 'true' == get_user_option( 'comment_shortcuts' ) ) 
  3. wp_enqueue_script( 'jquery-table-hotkeys' );