WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

wp_page_reload_on_back_button_js() WP 4.6.0

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.

Хуков нет.

Возвращает

Null. Ничего.

Использование

wp_page_reload_on_back_button_js();

Список изменений

С версии 4.6.0 Введена.

Код wp page reload on back button js: wp-admin/includes/misc.php WP 5.5.1

<?php
function wp_page_reload_on_back_button_js() {
	?>
	<script>
		if ( typeof performance !== 'undefined' && performance.navigation && performance.navigation.type === 2 ) {
			document.location.reload( true );
		}
	</script>
	<?php
}