restore_previous_locale

Advertisement

Summery Summery

Fires when the locale is restored to the previous one.

Syntax Syntax

do_action( 'restore_previous_locale', string $locale, string $previous_locale )

Parameters Parameters

$locale

(string) The new locale.

$previous_locale

(string) The previous locale.

Source Source

File: wp-includes/class-wp-locale-switcher.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.