AI Verified

Name

Save in WP Admin with CTRL + S

About

Save time by hitting CTRL/CMD + S instead of scrolling to find the Save/Update/Publish button

Language

PHP

Rating

Voted: 1 by 1 user(s)

How to Setup Snippet

Just install and activate

Codevault

hoofer

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: 6.1

Our AI bot has checked this snippet is compatable up to wordpress version: 6.1

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

History

Last modified:

16/05/2024

Important Note

This snippet has the following status:

AI Verified

This snippet has been tested by our AI bot, see any comments below.

AI Bot Comments:

Found 0 vulnerabilities

Save in WP Admin with CTRL + S

 
                    
1add_action('in_admin_footer', function() {
2// update test
3echo "<script>document.addEventListener('DOMContentLoaded', function() {
4 jQuery(document).ready(function($){
5 $(document).keydown(function(event) {
6 if((event.ctrlKey || event.metaKey) && event.which == 83) {
7 $('[type=\'submit\']').click();
8 event.preventDefault();
9 return false;
10 };
11 });
12 });
13});</script>";
14 
15});

1

Related Snippets

Please see some snippets below related to this snippet..

WordPress Admin

Unverified

0

Hide comments for a user who is not logged

Added: 1 year ago

Last Updated: 1 year ago

If you want to hide comments for a user who is not logged in then just use this custom CSS with class name. It will hide comments for logged-out users.

WordPress Admin

AI Verified

0

Disable specific file type upload

Added: 1 year ago

Last Updated: 1 year ago

Diasbale specific file type upload

WordPress Admin

AI Verified

1

Hide Login Errors

Added: 1 year ago

Last Updated: 1 year ago

Hide login error making them more generic to avoid giving any hint to potential harmful attacks

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

General

AI Verified

3

Autopopulate menu item with posts by post type

Added: 1 year ago

Last Updated: 11 months ago

Autopopulate menu item with posts by post type as submenu items

WordPress Admin

AI Verified

2

Disable admin notices by text string

Added: 1 year ago

Last Updated: 1 year ago

In $forbidden_message_strings array, provide a list of keywords or phrases that you want to disable. Provide a longer phrase to increase specificity

WordPress Admin

AI Verified

1

Save in WP Admin with CTRL + S

Added: 1 year ago

Last Updated: 1 month ago

Save time by hitting CTRL/CMD + S instead of scrolling to find the Save/Update/Publish button