I just wrote a plugin that does just that. It’s been submitted to the WordPress.org plugin repo earlier this week and hopefully should make an appearance soon. The plugin is officially in the WordPress.org repo. In short what you are looking for is a way to have the following code available on your post editor:
jQuery(window).bind('keydown', function(event) {
if (event.ctrlKey || event.metaKey) {
if(String.fromCharCode(event.which).toLowerCase() === 's' ) {
event.preventDefault();
if ( typeof wpkeysave_save_trigger !== 'undefined' ){
// harsh way to save draft/publish/update
jQuery( '#' + wpkeysave_save_trigger ).trigger( 'click' );
}
}
}
});
Update: The plugin is officially in the WordPress.org repo and will be actively maintained.
Related Posts:
- Add validation and error handling when saving custom fields?
- How to store the value of a custom field dropdown select for post referencing?
- Get updated meta data after save_post hook
- Check before publishing, if already exist post with current custom field value
- Bulk move (or copy) from a custom field to the post content?
- Check if the value of a field has changed on save_post
- Get updated meta value after post update or published (custom post type) using hook
- custom-meta-box checkboxes from loop won’t save
- Allow only one post with specific meta value
- What is the proper way to add a required field to a post type? [duplicate]
- Custom metabox not displaying multiselect data in edit mode
- How to validate select field in post meta?
- frontend submit post jQuery clone row won’t save
- Can wp_insert_post_data filter be used to save custom field data?
- Exclude URL’s from sanitize_html_classes
- Use value from ACF to populate other fields
- update a custom field with the value of another existing custom field
- Why WordPress takes time to make request to save post?
- Saving metadata of related post on save_post
- How to Pull Out Twitter Summary Data in other areas of my template?
- added a meta box to post however when saving menu while debug on throws a warning
- Multiple triggers when publishing, saving or updating a post in WordPress
- Set post status to draft after validating post meta values in save_post hook
- Importing data for advanced custom fields plugin?
- Gutenberg add a custom metabox to default blocks
- How to rename a custom field?
- Filter post listing by meta value which is a date
- Extra profile field as select box?
- Matching Serialized Arrays with meta_query
- How to activate “custom fields” section in WP3
- Add meta data to the menu
- How to oEmbed from custom field, responsive to container size and responsive
- Copy SEO Meta Desc “Custom Field” to Excerpt field?
- Custom fields won’t display on my blog page
- How to customize default wordpress editor?
- Add an advert every nth Paragraph
- How to edit multiple post with Custom fields
- Undefined index error when saving content on metabox
- How to update custom user meta field in wp?
- How can I show custom fields in the loop only to specific user roles?
- Add conditional custom option to ‘Display name publicly as’ dropdown
- Custom fields not getting saved in the databse when added to the add new user profile page
- I want to send an email when each post is published
- Creating a widget with a number of custom fields
- Show 1 post and after a specific date show the next one
- How to Create Dynamic Fields in a Meta Box?
- Set front page option using custom fields?
- Custom Field Values not updating unless I click “Update” twice
- Can I create a template or doctype for my blog site?
- Custom field, add class to anchor tag
- display custom field from inner blog in the main homepage of wordpress multisite
- Post selector as Custom Field
- Multiple URLS per post non-ascii
- Display Custom Meta Box Field Only If Value is Present
- Am I overusing custom fields (for adding nearly 5 images and their titles)?
- get_post_meta() retrieves meta from a specific post on pages, not the page currently viewed
- WP Query – Is this correct?
- How to remove custom fields from the selector?
- How can I combine this php statement to get the results of multiple variable inputs?
- Access ACF fields within custom preview function?
- Looping inside block return
- Scripts and tags will not save or output from my custom meta box
- Sortable Custom Columns not sorting correct
- Is there a size limit to the value you can save in a custom field?
- Using WP Color Picker in Repeatable Fields
- Running wp_postmeta update query does not show the custom fields data in admin section
- How do I save Multiple fields in a meta box?
- How to load script conditionally on custom field in wp_postmeta?
- Can I access Posts of custom-fields via URL?
- Output custom field value
- Showing Custom Fields on Parent Page
- Best way to achieve multiple links in a post title
- Custom Theme Fields in Settings Menu – apply filters to one of those fields?
- plugin-list-category-post custom fields
- How to display data from custom fields I created?
- Get array of posts based on custom field values
- How to automatically change a posts status to draft based on custom field
- How to show ACF fields in Gridbuilder custom block
- multiple meta_query and orderby question
- How to make menu country specific?
- Adding more fields to the registration form
- use mysql to replace one custom field value with another custom field value
- Change blog post title on main blog page
- Spit out list of distinct instances of custom field?
- Filter and display a specific custom field value [closed]
- Is it possible in WordPress
- Related post thumbnail not showing up
- Edit different parts of a page seperately
- Copy url from post_content to custom field
- I want my post to republish again after adding a custom field
- Custom fields: dropdown values depending on other custom field value
- How do i get a specific user metadata using custom metavalue outside of wordpress?
- Creating an If/Else statement using WPAlchemy MetaBox radio boxs
- How to retrive Custom Fields as Values for a Form field
- Media Custom Fields – get a value with PHP
- Custom fields doesnt work well with any postTAB plugin
- Colecting values from custom field checkboxes and displaying them in the post
- jaredatch metaboxes on video post formats
- Grouped Custom Meta Fields without plugin
- Conditional display based on ACF checkbox