Docs: Add `@since` version for `WP_Locale_Switcher::init()`.

Props keesiemeijer.
Fixes #42798.

git-svn-id: https://develop.svn.wordpress.org/trunk@42395 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2017-12-15 00:31:55 +00:00
parent e47feac514
commit f2b1df2c08
1 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,8 @@ class WP_Locale_Switcher {
* Initializes the locale switcher.
*
* Hooks into the {@see 'locale'} filter to change the locale on the fly.
*
* @since 4.7.0
*/
public function init() {
add_filter( 'locale', array( $this, 'filter_locale' ) );