Usher
v1.0.1Drew Jaynes · 2019年3月24日 上架
Adds keyboard shortcuts for navigating around the WordPress admin.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 1,796
- 最近更新
- 2021年7月1日
需要 WordPress 5.0+已测试到 5.8.20PHP 7.0+
贡献者
截图
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',
) );
