Skip to content

Instantly share code, notes, and snippets.

@dbernar1
Last active August 29, 2015 14:02
Show Gist options
  • Save dbernar1/2452771e7f935c89ebf8 to your computer and use it in GitHub Desktop.
Save dbernar1/2452771e7f935c89ebf8 to your computer and use it in GitHub Desktop.
Disabling autocomplete for WP post editor
<?php
/*
* Plugin Name: Disabling autocomplete for editor
* Description: See https://core.trac.wordpress.org/ticket/28037
*/
add_action( 'post_edit_form_tag' , 'disable_autocomplete_for_editor__gfm_ac' );
function disable_autocomplete_for_editor__gfm_ac( ) {
echo ' autocomplete="off" ';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment