Add Polylang support for Customizer

Add Polylang support for Customizer Install Statistics

0
100%
Today: 11 Yesterday: 11 All-time: 17,938 downloads
Add Polylang support for Customizer Icon

Try plugin: Add Polylang support for Customizer

We'll create fresh WordPress site with Add Polylang support for Customizer installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About Add Polylang support for Customizer

This plugin adds Polylang support for WordPress Customizer.

8


0


1


0


1

updated: 1 year ago
since: 4 years ago
author: richardev

Description

Add Polylang support for Customizer

This plugin adds Polylang support for WordPress Customizer.

Support

We provide direct support via our Frontbee Discord server

Features

  • Language switcher in Customizer.
  • Localized theme_mods and options for both default and custom made Customizer values.
  • Enable/disable forcing “The language is set from content” setting in Language->Settings->URL modifications

Prerequisite

  1. Polylang must be installed and activated.
  2. Languages must be set in Admin > Languages.
  3. If you have a static front page:
    1. Create a front page per each language.
    2. Select the front page in Admin > Settings > Reading per language.
  4. Expect customizer to use setting type = theme_mod (default) as in:

    $wp_customize->add_setting( ‘setting_id’, [ ‘type’ => ‘theme_mod’, ] );

    License

    This plugin is licensed under the GPL v2 or later.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

A copy of the license is included in the root of the plugin’s directory. The file is named LICENSE.

Important Notes

Licensing

This plugin is licensed under the GPL v2 or later; however, if you opt to use third-party code that is not compatible with v2, then you may need to switch to using code that is GPL v3 compatible.

Credits

Original solution made by @soderlind is available here. Share some love! This is WordPress plugin version of his solution.