load_translations example


    private function change_locale( $locale ) {
        global $wp_locale;

        $this->load_translations( $locale );

        $wp_locale = new WP_Locale();

        /** * Fires when the locale is switched to or restored. * * @since 4.7.0 * * @param string $locale The new locale. */
        do_action( 'change_locale', $locale );
    }
Home | Imprint | This part of the site doesn't use cookies.