wp_page_reload_on_back_button_js


wp_page_reload_on_back_button_js ( No parameters )

Defined at:

Description

Outputs JS that reloads the page if the user navigated to it with the Back or Forward button.

Used on the Edit Post and Add New Post screens. Needed to ensure the page is not loaded from browser cache, so the post title and editor content are the last saved versions. Ideally this script should run first in the head.

Related Functions

wp_preload_dialogs, _wp_get_user_contactmethods, wp_prepare_revisions_for_js, wp_upload_bits, wp_create_post_autosave

Top Google Results

User discussions

wpseek mobile