Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drewapicture/usher
Usher introduces global (and screen-specific) keyboard shortcuts for navigating the WordPress admin.
https://github.com/drewapicture/usher
Last synced: 19 days ago
JSON representation
Usher introduces global (and screen-specific) keyboard shortcuts for navigating the WordPress admin.
- Host: GitHub
- URL: https://github.com/drewapicture/usher
- Owner: DrewAPicture
- License: gpl-2.0
- Created: 2019-01-18T18:08:40.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-12T06:26:17.000Z (over 4 years ago)
- Last Synced: 2024-10-27T16:39:06.753Z (2 months ago)
- Language: PHP
- Homepage: https://wordpress.org/plugins/usher/
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Usher
* **Stable: v1.0.1**
* **Requires WP: 5.0**
* **Requires PHP: 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.
![Shortcuts panel listing shortcuts](http://mr.drewf.us/04e1f15b3e98/Screen%252520Shot%2525202019-03-23%252520at%2525206.37.58%252520PM.png)
To register new shortcuts, use the Usher\register_shortcut() function. For example:
**Add a shortcut for the EDD Dashboard**
```php
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**
```php
Usher\register_shortcut( 'g j', array(
'label' => __( 'Navigate to the Jetpack dashboard', 'textdomain' ),
'url' => 'admin.php?page=jetpack',
'cap' => 'manage_options',
) );
```