Usher
开发者 |
DrewAPicture
|
更新时间 |
2021年7月1日 16:09 |
PHP版本: |
7.0 及以上 |
WordPress版本: |
5.8 |
版权: |
GPLv2 or later |
版权网址: |
版权信息
|
详情介绍:
Usher brings Gmail-like keyboard shortcuts for navigating around the various core pages of the WordPress admin.
Additionally, it includes a robust API for registering new global and screen-specific keyboard shortcuts.
To register new shortcuts, use the Usher\register_shortcut() function. For example:
Add a shortcut for the EDD Dashboard
Usher\register_shortcut( 'g d', array( 'label' => __( 'Navigate to the EDD dashboard', 'textdomain' ), 'url' => 'edit.php?post_type=download', 'cap' => 'manage_shop_settings' ) );
Add a shortcut for the Jetpack Dashboard
Usher\register_shortcut( 'g j', array( 'label' => __( 'Navigate to the Jetpack dashboard', 'textdomain' ), 'url' => 'admin.php?page=jetpack', 'cap' => 'manage_options', ) );
屏幕截图:
更新日志:
1.0.1
- New: Shortcuts can now be registered with fully-qualified URLs
- Tweak: Updated the Plugins, Updates, and Network Admin screen shortcuts to two letters because of the unreliability of three-letter shortcuts
- Fix: Ensure shortcuts targeted for the current screen get properly bound to the Usher JS object
1.0