Skip to content

Instantly share code, notes, and snippets.



Block or report user

Report or block 4tj

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View publish_update_by_hotkey
* publish_update_by_hotkey
* this function enables ctrt-s saving by forcing a click on the publish or update button
* no more scrolling like a mad man
* credits to:
add_action('admin_head', 'publish_update_by_hotkey');
function publish_update_by_hotkey(){
$file = end(explode('/',$_SERVER['SCRIPT_NAME']));
You can’t perform that action at this time.