Title: post_form_autocomplete_off
Published: September 4, 2014
Last modified: May 20, 2026

---

# post_form_autocomplete_off()

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/post_form_autocomplete_off/?output_format=md#description)
 * [Source](https://developer.wordpress.org/reference/functions/post_form_autocomplete_off/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/post_form_autocomplete_off/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/post_form_autocomplete_off/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/post_form_autocomplete_off/?output_format=md#wp--skip-link--target)

This function has been deprecated since 4.6.0.

Disables autocomplete on the ‘post’ form (Add/Edit Post screens) for WebKit browsers,
as they disregard the autocomplete setting on the editor textarea. That can break
the editor when the user navigates to it with the browser’s Back button. See #28037

## 󠀁[Description](https://developer.wordpress.org/reference/functions/post_form_autocomplete_off/?output_format=md#description)󠁿

Replaced with [wp_page_reload_on_back_button_js()](https://developer.wordpress.org/reference/functions/wp_page_reload_on_back_button_js/)
that also fixes this problem.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/post_form_autocomplete_off/?output_format=md#source)󠁿

    ```php
    function post_form_autocomplete_off() {
    	global $is_safari, $is_chrome;

    	_deprecated_function( __FUNCTION__, '4.6.0' );

    	if ( $is_safari || $is_chrome ) {
    		echo ' autocomplete="off"';
    	}
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/deprecated.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/deprecated.php#L1496)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/deprecated.php#L1496-L1504)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/post_form_autocomplete_off/?output_format=md#related)󠁿

| Uses | Description | 
| [_deprecated_function()](https://developer.wordpress.org/reference/functions/_deprecated_function/)`wp-includes/functions.php` |

Marks a function as deprecated and inform when it has been used.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/post_form_autocomplete_off/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.6.0](https://developer.wordpress.org/reference/since/4.6.0/) | Deprecated.  | 
| [4.0.0](https://developer.wordpress.org/reference/since/4.0.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fpost_form_autocomplete_off%2F)
before being able to contribute a note or feedback.